![]() |
VR-Forces 4.0.4 Class Documentation
|
The shared settings manager, is the global object responsible for managing any shared settings objects. More...

Public Member Functions | |
| virtual | ~DtSharedSettingsManager () |
| DTOR. | |
| DtEventQueueInterface & | thisThreadEventQueue () const |
| Get the event queue for the current executing thread. | |
| DtEventQueueInterface * | findThisThreadEventQueue () const |
| Get the event queue for the current executing thread. | |
Static Public Member Functions | |
| static DtSharedSettingsManager & | instance (DtDe &) |
| Get an instance of the shared settings manager from the DtDe;. | |
Protected Types | |
| typedef std::map< std::string, DtSharedSettings * > | SettingInstances |
Protected Member Functions | |
| const DtSharedSettings * | findSettings (const std::string &className) const |
| Find a settings object. | |
| void | registerSettings (const std::string &className, DtSharedSettings *setting) |
| Register a settings object. | |
| boost::shared_mutex & | mutex () |
| DtSharedSettingsManager (DtDe &de) | |
| Use the static instance accessor. | |
Protected Attributes | |
| boost::shared_mutex | myMutex |
| SettingInstances | mySettings |
| DtDe & | myUnsafeDe |
| DtThreadId | myDeThreadId |
Private Member Functions | |
| DtSharedSettingsManager (const DtSharedSettingsManager &) | |
| not copyable or assignable. | |
| DtSharedSettingsManager & | operator= (DtSharedSettingsManager &) |
Friends | |
| class | DtReadSettingsLock |
| Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access this object. | |
| class | DtWriteSettingsLock |
The shared settings manager, is the global object responsible for managing any shared settings objects.
This manager object can be safely shared between threads.
typedef std::map<std::string, DtSharedSettings*> makVrv::DtSharedSettingsManager::SettingInstances [protected] |
| virtual makVrv::DtSharedSettingsManager::~DtSharedSettingsManager | ( | ) | [virtual] |
DTOR.
| makVrv::DtSharedSettingsManager::DtSharedSettingsManager | ( | DtDe & | de | ) | [protected] |
Use the static instance accessor.
| makVrv::DtSharedSettingsManager::DtSharedSettingsManager | ( | const DtSharedSettingsManager & | ) | [private] |
not copyable or assignable.
| static DtSharedSettingsManager& makVrv::DtSharedSettingsManager::instance | ( | DtDe & | ) | [static] |
Get an instance of the shared settings manager from the DtDe;.
Referenced by makVrv::DtBaseSharedSettingsManager< makArchives::DtEntitySettingsRecord, DtSharedEntityDisplaySettings >::getRecord(), makVrv::DtBaseSharedSettingsManager< makArchives::DtEntitySettingsRecord, DtSharedEntityDisplaySettings >::initializeBackup(), and makVrv::DtBaseSharedSettingsManager< makArchives::DtEntitySettingsRecord, DtSharedEntityDisplaySettings >::setFromRecord().
Get the event queue for the current executing thread.
Intentionally const, and returning non-const interface. This function is thread safe and re-entrant.
| DtCorruptedState | if unable to get event queue. |
Get the event queue for the current executing thread.
Intentionally const, and returning non-const interface. This function is thread safe and re-entrant.
| const DtSharedSettings* makVrv::DtSharedSettingsManager::findSettings | ( | const std::string & | className | ) | const [protected] |
Find a settings object.
| void makVrv::DtSharedSettingsManager::registerSettings | ( | const std::string & | className, |
| DtSharedSettings * | setting | ||
| ) | [protected] |
Register a settings object.
If an object already exists. Must call lock for writing before calling.
| boost::shared_mutex& makVrv::DtSharedSettingsManager::mutex | ( | ) | [inline, protected] |
| DtSharedSettingsManager& makVrv::DtSharedSettingsManager::operator= | ( | DtSharedSettingsManager & | ) | [private] |
friend class DtReadSettingsLock [friend] |
Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access this object.
friend class DtWriteSettingsLock [friend] |
boost::shared_mutex makVrv::DtSharedSettingsManager::myMutex [protected] |
DtDe& makVrv::DtSharedSettingsManager::myUnsafeDe [protected] |
DtThreadId makVrv::DtSharedSettingsManager::myDeThreadId [protected] |