The Battle for Wesnoth  1.19.0-dev
Classes | Macros | Functions
persist_var.cpp File Reference
#include "game_data.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "persist_context.hpp"
#include "persist_manager.hpp"
#include "persist_var.hpp"
#include "play_controller.hpp"
#include "synced_user_choice.hpp"
#include "resources.hpp"
#include "variable.hpp"
Include dependency graph for persist_var.cpp:

Go to the source code of this file.

Classes

struct  persist_choice
 

Macros

#define DBG_PERSIST   LOG_STREAM(debug, log_persist)
 
#define ERR_PERSIST   LOG_STREAM(err, log_persist)
 

Functions

static void get_global_variable (persist_context &ctx, const vconfig &pcfg)
 
static void clear_global_variable (persist_context &ctx, const vconfig &pcfg)
 
static void set_global_variable (persist_context &ctx, const vconfig &pcfg)
 
void verify_and_get_global_variable (const vconfig &pcfg)
 
void verify_and_set_global_variable (const vconfig &pcfg)
 
void verify_and_clear_global_variable (const vconfig &pcfg)
 

Macro Definition Documentation

◆ DBG_PERSIST

#define DBG_PERSIST   LOG_STREAM(debug, log_persist)

Definition at line 29 of file persist_var.cpp.

◆ ERR_PERSIST

#define ERR_PERSIST   LOG_STREAM(err, log_persist)

Definition at line 30 of file persist_var.cpp.

Function Documentation

◆ clear_global_variable()

static void clear_global_variable ( persist_context ctx,
const vconfig pcfg 
)
static

◆ get_global_variable()

static void get_global_variable ( persist_context ctx,
const vconfig pcfg 
)
static

◆ set_global_variable()

static void set_global_variable ( persist_context ctx,
const vconfig pcfg 
)
static

◆ verify_and_clear_global_variable()

void verify_and_clear_global_variable ( const vconfig pcfg)

◆ verify_and_get_global_variable()

void verify_and_get_global_variable ( const vconfig pcfg)

◆ verify_and_set_global_variable()

void verify_and_set_global_variable ( const vconfig pcfg)