Public Member Functions | Protected Types | Protected Attributes

persist_manager Class Reference

#include <persist_manager.hpp>

Collaboration diagram for persist_manager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool start_transaction ()
bool end_transaction ()
bool cancel_transaction ()
 persist_manager ()
virtual ~persist_manager ()
persist_contextget_context (const std::string &ns)

Protected Types

typedef std::map< std::string,
persist_context * > 
context_map

Protected Attributes

bool in_transaction_
context_map contexts_

Detailed Description

Definition at line 21 of file persist_manager.hpp.


Member Typedef Documentation

typedef std::map<std::string,persist_context *> persist_manager::context_map [protected]

Definition at line 23 of file persist_manager.hpp.


Constructor & Destructor Documentation

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_.

Here is the call graph for this function:


Member Function Documentation

bool persist_manager::cancel_transaction (  ) 

Definition at line 56 of file persist_manager.cpp.

References contexts_, and in_transaction_.

Referenced by ~persist_manager().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

persist_context & persist_manager::get_context ( const std::string &  ns  ) 
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().

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:41 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs