VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions
makVrv::DtSharedSettings Class Reference

The base class for all shared settings. More...

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

List of all members.

Classes

class  SafetyKey
 Internal key used to ensure thread safety. More...
class  SignalSafety

Public Member Functions

 DtSharedSettings (const DtSharedSettingsManager &manager)
 CTOR.
virtual ~DtSharedSettings ()
 DTOR.
boost::shared_mutex & mutex ()
 Get the mutex for the settings object.

Section for safely emitting signals in 'set' functions from a

write locked settings object.

class SignalSafety
 Create a safety key for the function, see above example.
const DtSharedSettingsManagermyManager
 Create a safety key for the function, see above example.
boost::shared_mutex myMutex
 Create a safety key for the function, see above example.
boost::unique_lock
< boost::shared_mutex > * 
myCurrentWriteLock
 Create a safety key for the function, see above example.
SafetyKey safeToEmitSignals ()
 Create a safety key for the function, see above example.
void setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock)
 No need to call, set by the DtWriteSettingLock object.
virtual const DtSettingsBackupsettingsBackup () const
 Accessor for the settings backup (const).
virtual DtSettingsBackupsettingsBackup ()
 Accessor for the settings backup.
virtual void backup ()
 Called to back up the settings.

Detailed Description

The base class for all shared settings.

Actual settings class should have the following members/declarations

friend class DtReadSettingsLock<DtSharedSimulationSettings>; friend class DtWriteSettingsLock<DtSharedSimulationSettings>; friend class DtSharedSettingsManager; static std::string className();


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

boost::shared_mutex& makVrv::DtSharedSettings::mutex ( ) [inline]

Get the mutex for the settings object.

Create a safety key for the function, see above example.

void makVrv::DtSharedSettings::setCurrentWriteLock ( boost::unique_lock< boost::shared_mutex > *  currentWriteLock) [inline]

No need to call, set by the DtWriteSettingLock object.

virtual const DtSettingsBackup* makVrv::DtSharedSettings::settingsBackup ( ) const [virtual]
virtual void makVrv::DtSharedSettings::backup ( ) [virtual]

Friends And Related Function Documentation

friend class SignalSafety [friend]

Create a safety key for the function, see above example.


Member Data Documentation

Create a safety key for the function, see above example.

boost::shared_mutex makVrv::DtSharedSettings::myMutex [private]

Create a safety key for the function, see above example.

boost::unique_lock<boost::shared_mutex>* makVrv::DtSharedSettings::myCurrentWriteLock [private]

Create a safety key for the function, see above example.


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)