The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
persist_manager Class Reference

#include <persist_manager.hpp>

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 23 of file persist_manager.hpp.

Member Typedef Documentation

Definition at line 25 of file persist_manager.hpp.

Constructor & Destructor Documentation

persist_manager::persist_manager ( )

Definition at line 18 of file persist_manager.cpp.

persist_manager::~persist_manager ( )
virtual

Definition at line 23 of file persist_manager.cpp.

References cancel_transaction(), contexts_, and i.

Member Function Documentation

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

Member Data Documentation

context_map persist_manager::contexts_
protected
bool persist_manager::in_transaction_
protected

The documentation for this class was generated from the following files: