Pol  Revision:cb584c9
Pol::Core::StorageArea Class Reference

#include <storage.h>

Public Member Functions

 StorageArea (std::string name)
 ~StorageArea ()
bool delete_root_item (const std::string &name)
size_t estimateSize () const
Items::Itemfind_root_item (const std::string &name)
void insert_root_item (Items::Item *item)
void load_item (Clib::ConfigElem &elem)
void on_delete_realm (Realms::Realm *realm)
void print (Clib::StreamWriter &sw) const

Private Types

typedef std::map< std::string, Items::Item *, Clib::ci_cmp_predCont

Private Attributes

Cont _items
std::string _name


class StorageAreaImp
class StorageAreaIterator
void write_dirty_storage (Clib::StreamWriter &)

Detailed Description

Definition at line 33 of file storage.h.

Member Typedef Documentation

typedef std::map<std::string, Items::Item*, Clib::ci_cmp_pred> Pol::Core::StorageArea::Cont

Definition at line 52 of file storage.h.

Constructor & Destructor Documentation

Pol::Core::StorageArea::StorageArea ( std::string  name)

Definition at line 43 of file storage.cpp.

Referenced by Pol::Core::Storage::create_area().

Pol::Core::StorageArea::~StorageArea ( )

Definition at line 45 of file storage.cpp.

References _items, and Pol::Core::UObject::destroy().

Member Function Documentation

bool Pol::Core::StorageArea::delete_root_item ( const std::string &  name)
size_t Pol::Core::StorageArea::estimateSize ( ) const

Definition at line 56 of file storage.cpp.

References _items, and _name.

Items::Item * Pol::Core::StorageArea::find_root_item ( const std::string &  name)
void Pol::Core::StorageArea::on_delete_realm ( Realms::Realm realm)
void Pol::Core::StorageArea::print ( Clib::StreamWriter sw) const

Definition at line 174 of file storage.cpp.

References _items, and Pol::Core::UObject::saveonexit().

Friends And Related Function Documentation

friend class StorageAreaImp

Definition at line 55 of file storage.h.

friend class StorageAreaIterator

Definition at line 56 of file storage.h.

void write_dirty_storage ( Clib::StreamWriter sw_data)

Definition at line 61 of file savedata.cpp.

Member Data Documentation

std::string Pol::Core::StorageArea::_name

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