VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtSharedSettingsManager Class Reference

The shared settings manager, is the global object responsible for managing any shared settings objects. More...

Inheritance diagram for makVrv::DtSharedSettingsManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~DtSharedSettingsManager ()
 DTOR.
DtEventQueueInterfacethisThreadEventQueue () const
 Get the event queue for the current executing thread.
DtEventQueueInterfacefindThisThreadEventQueue () const
 Get the event queue for the current executing thread.

Static Public Member Functions

static DtSharedSettingsManagerinstance (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 DtSharedSettingsfindSettings (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
DtDemyUnsafeDe
DtThreadId myDeThreadId

Private Member Functions

 DtSharedSettingsManager (const DtSharedSettingsManager &)
 not copyable or assignable.
DtSharedSettingsManageroperator= (DtSharedSettingsManager &)

Friends

class DtReadSettingsLock
 Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access this object.
class DtWriteSettingsLock

Detailed Description

The shared settings manager, is the global object responsible for managing any shared settings objects.

This manager object can be safely shared between threads.


Member Typedef Documentation

typedef std::map<std::string, DtSharedSettings*> makVrv::DtSharedSettingsManager::SettingInstances [protected]

Constructor & Destructor Documentation

DTOR.

Use the static instance accessor.

not copyable or assignable.


Member Function Documentation

Get the event queue for the current executing thread.

Intentionally const, and returning non-const interface. This function is thread safe and re-entrant.

Exceptions:
DtCorruptedStateif 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.

Warning:
Must call lock for reading before calling.
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]

Friends And Related Function Documentation

friend class DtReadSettingsLock [friend]

Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access this object.

friend class DtWriteSettingsLock [friend]

Member Data Documentation

boost::shared_mutex makVrv::DtSharedSettingsManager::myMutex [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)