Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Static Private Attributes

DataManager< T, C > Class Template Reference

#include <DataManager.h>

Collaboration diagram for DataManager< T, C >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

T * request (const string &name)
void registerObject (const string &name, T *object) throw (DataManagerException)
void unregisterObject (const string &name, bool deleteObject=false)
void purge ()

Static Public Member Functions

static C * getInstance ()
static void kill ()

Protected Member Functions

 DataManager ()
virtual ~DataManager ()

Private Types

typedef map< string, T * > DataMap

Private Attributes

DataMap _registry

Static Private Attributes

static C * _singleton

Detailed Description

template<typename T, typename C>
class DataManager< T, C >

Definition at line 69 of file DataManager.h.


Member Typedef Documentation

template<typename T, typename C>
typedef map<string, T*> DataManager< T, C >::DataMap [private]

Definition at line 88 of file DataManager.h.


Constructor & Destructor Documentation

template<typename T, typename C>
DataManager< T, C >::DataManager (  )  [protected]
template<typename T, typename C>
virtual DataManager< T, C >::~DataManager (  )  [protected, virtual]

Member Function Documentation

template<typename T, typename C>
T* DataManager< T, C >::request ( const string &  name  ) 
template<typename T, typename C>
void DataManager< T, C >::registerObject ( const string &  name,
T *  object 
) throw (DataManagerException)
template<typename T, typename C>
void DataManager< T, C >::unregisterObject ( const string &  name,
bool  deleteObject = false 
)
template<typename T, typename C>
void DataManager< T, C >::purge (  ) 
template<typename T, typename C>
static C* DataManager< T, C >::getInstance (  )  [static]
template<typename T, typename C>
static void DataManager< T, C >::kill (  )  [static]

Member Data Documentation

template<typename T, typename C>
DataMap DataManager< T, C >::_registry [private]

Definition at line 89 of file DataManager.h.

template<typename T, typename C>
C* DataManager< T, C >::_singleton [static, private]

Definition at line 98 of file DataManager.h.


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