RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Settings::Manager Class Reference

#include <settings.h>

Public Member Functions

ObjectgetObject (Object::ID) const
 
void foreachObject (void(*callback)(Object *, void *), void *param)
 
int load (const std::string &)
 
int save (const std::string &)
 

Static Public Member Functions

static ManagergetInstance (void)
 

Private Member Functions

 Manager (void)
 
 ~Manager (void)
 
 Manager (const Manager &)
 
Manageroperator= (const Manager &)
 
void acquireID (Object *, Object::ID=Object::INVALID)
 
void releaseID (Object *)
 
void insertObject (Object *)
 
void removeObject (Object *)
 

Private Attributes

Mutex mutex
 
Object::ID currentID
 
std::list< Object * > objectList
 
std::map< Object::ID, Object * > objectMap
 

Static Private Attributes

static Managerinstance = 0
 

Friends

class Object
 

Detailed Description

Definition at line 173 of file settings.h.

Constructor & Destructor Documentation

Settings::Manager::Manager(void )
inlineprivate

Definition at line 205 of file settings.h.

Settings::Manager::~Manager(void )
inlineprivate

Definition at line 206 of file settings.h.

Settings::Manager::Manager(const Manager)
inlineprivate

Definition at line 207 of file settings.h.

Member Function Documentation

void Settings::Manager::acquireID(Settings::Objectobject,
Object::ID id = Object::INVALID 
)
private

Definition at line 444 of file settings.cpp.

void Settings::Manager::foreachObject(void(*)(Object *, void *) callback,
void * param 
)

Definition at line 223 of file settings.cpp.

Settings::Manager * Settings::Manager::getInstance(void )
static

Definition at line 534 of file settings.cpp.

Settings::Object * Settings::Manager::getObject(Object::ID id)const

Definition at line 212 of file settings.cpp.

void Settings::Manager::insertObject(Settings::Objectobject)
private

Definition at line 498 of file settings.cpp.

int Settings::Manager::load(const std::string & filename)

Definition at line 230 of file settings.cpp.

Manager& Settings::Manager::operator=(const Manager)
inlineprivate

Definition at line 208 of file settings.h.

void Settings::Manager::releaseID(Settings::Objectobject)
private

Definition at line 486 of file settings.cpp.

void Settings::Manager::removeObject(Settings::Objectobject)
private

Definition at line 519 of file settings.cpp.

int Settings::Manager::save(const std::string & filename)

Definition at line 358 of file settings.cpp.

Friends And Related Function Documentation

friend class Object
friend

Definition at line 176 of file settings.h.

Member Data Documentation

Object::ID Settings::Manager::currentID
private

Definition at line 222 of file settings.h.

Settings::Manager * Settings::Manager::instance = 0
staticprivate

Definition at line 211 of file settings.h.

Mutex Settings::Manager::mutex
mutableprivate

Definition at line 221 of file settings.h.

std::list<Object *> Settings::Manager::objectList
private

Definition at line 223 of file settings.h.

std::map<Object::ID,Object *> Settings::Manager::objectMap
private

Definition at line 224 of file settings.h.


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