The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions
persist_var.cpp File Reference
#include "global.hpp"
#include "game_data.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 "util.hpp"
#include "variable.hpp"
#include <cassert>
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

#define DBG_PERSIST   LOG_STREAM(debug, log_persist)

Definition at line 31 of file persist_var.cpp.

Referenced by verify_and_get_global_variable().

#define ERR_PERSIST   LOG_STREAM(err, log_persist)

Function Documentation

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