Pol  Revision:cb584c9
Pol::Core::Storage Class Reference

#include <storage.h>

Public Member Functions

void clear ()
StorageAreacreate_area (const std::string &name)
StorageAreacreate_area (Clib::ConfigElem &elem)
size_t estimateSize () const
StorageAreafind_area (const std::string &name)
void on_delete_realm (Realms::Realm *realm)
void print (Clib::StreamWriter &sw) const
void read (Clib::ConfigFile &cf)

Private Types

typedef std::map< std::string, StorageArea * > AreaCont

Private Attributes

AreaCont areas


class StorageAreasImp
class StorageAreasIterator
void write_dirty_storage (Clib::StreamWriter &)

Detailed Description

Definition at line 60 of file storage.h.

Member Typedef Documentation

typedef std::map<std::string, StorageArea*> Pol::Core::Storage::AreaCont

Definition at line 76 of file storage.h.

Member Function Documentation

void Pol::Core::Storage::clear ( )

Definition at line 278 of file storage.cpp.

Referenced by Pol::Core::GameState::cleanup_vars().

StorageArea * Pol::Core::Storage::create_area ( const std::string &  name)
StorageArea * Pol::Core::Storage::create_area ( Clib::ConfigElem elem)
size_t Pol::Core::Storage::estimateSize ( ) const

Definition at line 287 of file storage.cpp.

Referenced by Pol::Core::GameState::estimateSize().

StorageArea * Pol::Core::Storage::find_area ( const std::string &  name)

Definition at line 135 of file storage.cpp.

Referenced by Pol::Module::StorageExecutorModule::mf_FindStorageArea().

void Pol::Core::Storage::on_delete_realm ( Realms::Realm realm)

Definition at line 201 of file storage.cpp.

Referenced by Pol::Core::remove_realm().

void Pol::Core::Storage::print ( Clib::StreamWriter sw) const

Definition at line 264 of file storage.cpp.

Friends And Related Function Documentation

friend class StorageAreasImp

Definition at line 79 of file storage.h.

friend class StorageAreasIterator

Definition at line 80 of file storage.h.

void write_dirty_storage ( Clib::StreamWriter sw_data)

Definition at line 61 of file savedata.cpp.

Member Data Documentation

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