The Battle for Wesnoth  1.19.7+dev
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, std::unique_ptr< persist_context > > context_map
 

Protected Attributes

bool in_transaction_
 
context_map contexts_
 

Detailed Description

Definition at line 24 of file persist_manager.hpp.

Member Typedef Documentation

◆ context_map

typedef std::map<std::string, std::unique_ptr<persist_context> > persist_manager::context_map
protected

Definition at line 26 of file persist_manager.hpp.

Constructor & Destructor Documentation

◆ persist_manager()

persist_manager::persist_manager ( )

Definition at line 19 of file persist_manager.cpp.

◆ ~persist_manager()

persist_manager::~persist_manager ( )
virtual

Definition at line 24 of file persist_manager.cpp.

References cancel_transaction().

Member Function Documentation

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

◆ end_transaction()

bool persist_manager::end_transaction ( )

◆ get_context()

persist_context & persist_manager::get_context ( const std::string &  ns)

◆ start_transaction()

bool persist_manager::start_transaction ( )

Member Data Documentation

◆ contexts_

context_map persist_manager::contexts_
protected

◆ in_transaction_

bool persist_manager::in_transaction_
protected

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