#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, std::unique_ptr< persist_context > > | context_map |
Protected Attributes | |
bool | in_transaction_ |
context_map | contexts_ |
Definition at line 24 of file persist_manager.hpp.
|
protected |
Definition at line 26 of file persist_manager.hpp.
persist_manager::persist_manager | ( | ) |
Definition at line 19 of file persist_manager.cpp.
|
virtual |
Definition at line 24 of file persist_manager.cpp.
References cancel_transaction().
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::do_end_level(), and savegame::savegame::save_game().
persist_context & persist_manager::get_context | ( | const std::string & | ns | ) |
Definition at line 28 of file persist_manager.cpp.
References contexts_, persist_context::name_space::descendants_, in_transaction_, and persist_context::name_space::root_.
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 29 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), and start_transaction().
|
protected |
Definition at line 28 of file persist_manager.hpp.
Referenced by cancel_transaction(), end_transaction(), get_context(), and start_transaction().