#include <persist_manager.hpp>

Public Member Functions | |
| bool | start_transaction () |
| bool | end_transaction () |
| bool | cancel_transaction () |
| persist_manager () | |
| virtual | ~persist_manager () |
| persist_context & | get_context (const std::string &ns) |
Protected Types | |
| typedef std::map< std::string, persist_context * > | context_map |
Protected Attributes | |
| bool | in_transaction_ |
| context_map | contexts_ |
Definition at line 21 of file persist_manager.hpp.
typedef std::map<std::string,persist_context *> persist_manager::context_map [protected] |
Definition at line 23 of file persist_manager.hpp.
| persist_manager::persist_manager | ( | ) | [inline] |
Definition at line 32 of file persist_manager.hpp.
| virtual persist_manager::~persist_manager | ( | ) | [inline, virtual] |
Definition at line 33 of file persist_manager.hpp.
References cancel_transaction(), and contexts_.

| bool persist_manager::cancel_transaction | ( | ) |
Definition at line 56 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by ~persist_manager().

| bool persist_manager::end_transaction | ( | ) |
Definition at line 46 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by playmp_scenario(), playsingle_scenario(), savegame::savegame::save_game(), and playsingle_controller::store_gold().

| persist_context & persist_manager::get_context | ( | const std::string & | ns | ) |
Definition at line 21 of file persist_manager.cpp.
References contexts_, persist_context::name_space::descendants_, persist_context::get_node(), in_transaction_, persist_context::name_space::root_, and persist_context::set_node().
Referenced by verify_and_clear_global_variable(), verify_and_get_global_variable(), and verify_and_set_global_variable().


| bool persist_manager::start_transaction | ( | ) |
Definition at line 36 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by play_controller::play_controller(), and savegame::savegame::save_game().

context_map persist_manager::contexts_ [protected] |
Definition at line 26 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), start_transaction(), and ~persist_manager().
bool persist_manager::in_transaction_ [protected] |
Definition at line 25 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), and start_transaction().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:41 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |