#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 23 of file persist_manager.hpp.
|
protected |
Definition at line 25 of file persist_manager.hpp.
persist_manager::persist_manager | ( | ) |
Definition at line 18 of file persist_manager.cpp.
|
virtual |
Definition at line 23 of file persist_manager.cpp.
References cancel_transaction(), contexts_, and i.
bool persist_manager::cancel_transaction | ( | ) |
Definition at line 64 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by ~persist_manager().
bool persist_manager::end_transaction | ( | ) |
Definition at line 54 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by playsingle_controller::play_scenario(), and savegame::savegame::save_game().
persist_context & persist_manager::get_context | ( | const std::string & | ns | ) |
Definition at line 29 of file persist_manager.cpp.
References contexts_, persist_context::name_space::descendants_, persist_context::get_node(), i, 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 44 of file persist_manager.cpp.
References contexts_, and in_transaction_.
Referenced by play_controller::play_controller(), and savegame::savegame::save_game().
|
protected |
Definition at line 28 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), start_transaction(), and ~persist_manager().
|
protected |
Definition at line 27 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), and start_transaction().