VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
makVrv::DtInterestManagementSettingsManager Class Reference

Manager for interest management (DDM) settings. More...

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

Public Member Functions

virtual ~DtInterestManagementSettingsManager ()
 DTOR.
virtual void updateInterestManagementSettings ()
 Forces a reset of all current interest management settings to what they currently are to force signals to be sent.
Setting Getters/Setters
virtual int ddmRegionSize () const
 Gets the DDM region size to use.
virtual void setDdmRegionSize (int size)
 Sets the DDM region size to use.
virtual int regionUpdateThreshold () const
 Gets the threshold for region updates.
virtual void setRegionUpdateThreshold (int percentage)
 Sets the threshold for region updates.
virtual bool altitudeThresholdEnabled () const
 Gets whether the altitude threshold for DDM regions is enabled.
virtual void setAltitudeThresholdEnabled (bool enabled)
 Sets whether the altitude threshold for DDM regions is enabled.
virtual int altitudeThreshold () const
 Gets the altitude threshold for DDM regions.
virtual void setAltitudeThreshold (int threshold)
 Sets the altitude threshold for DDM regions.
- Public Member Functions inherited from makVrv::DtBaseSharedSettingsManager< makArchives::DtInterestManagementRecord, DtSharedInterestManagementSettings >
 DtBaseSharedSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext)
 CTOR.
virtual ~DtBaseSharedSettingsManager ()
 Virtual DTOR.
virtual void initializeBackup ()
 Creates a backup of the settings' current state.
virtual void setFromRecord (const makArchives::DtInterestManagementRecord &record)
 Set the current settings' state from the given record.
virtual void getRecord (makArchives::DtInterestManagementRecord &record) const
 Store the current settings' state in the given record.
- Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtInterestManagementRecord >
 DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext)
 CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk.
virtual ~DtCommonBaseSettingsManager ()
 Virtual DTOR.
virtual void autoSaveIfNecessary ()
 Saves the current settings as defaults if autosave is enabled.
virtual void setAutoSave (bool doit)
 Sets whether autosave is enabled for the settings manager.
virtual bool autoSave () const
 Gets whether autosave is enabled for the settings manager.
virtual void setUseDefaultSettingsRecord (bool useit)
 Sets whether setting initialization should check for a default record.
virtual bool useDefaultSettingsRecord () const
 Gets whether setting initialization should check for a default record.
virtual DtDeSettingssettings ()
 Accessor for the manager's DtDeSettings object.
virtual const DtDeSettingssettings () const
 Accessor for the manager's DtDeSettings object (const).
virtual DtSettingsBackupsettingsBackup ()
 Accessor for the manager's settings backup.
virtual const DtSettingsBackupsettingsBackup () const
 Accessor for the manager's settings backup (const).
virtual void loadDefaults ()
 Initializes the settings and creates a backup.
virtual void saveDefaultSettings ()
 Saves the current settings' state as the default (on disk).
virtual void loadDefaultSettings (bool loadOnlyFactorySettings)
 Loads the default settings from disk.
virtual void importSettings (const std::string &filePath)
 Load the settings' state from the given file.
virtual void exportSettings (const std::string &filePath) const
 Save the current settings' state to the given file.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtInterestManagementSettingsManager
instance (DtDe &de)
 Get an instance of the settings manager.

Protected Member Functions

 DtInterestManagementSettingsManager (DtDe &de)
 Protected CTOR ( use instance(..) ).

Friends

template<typename ManagerClass >
ManagerClass & defaultManagerInstanceFunction (DtDe &, bool)
 Befriend the manager instance functions for instance retreival/creation.
template<typename ManagerClass >
void defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *)
 Befriend the manager instance functions for instance retreival/creation.

Additional Inherited Members

- Protected Types inherited from makVrv::DtBaseSharedSettingsManager< makArchives::DtInterestManagementRecord, DtSharedInterestManagementSettings >
typedef
DtSharedRecordSettingsBackup
< DtSharedInterestManagementSettings,
makArchives::DtInterestManagementRecord
SharedRecordBackupType
- Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtInterestManagementRecord >
DtSignalConnectionManager myConnections
std::string myName
std::string myExtension
std::string myDisplayName
bool myUseDefaultSettingsRecordFlag
bool myAutoSaveFlag
DtSettingsBackupmySettingsBackup
DtDemyDe

Detailed Description

Manager for interest management (DDM) settings.

Constructor & Destructor Documentation

virtual makVrv::DtInterestManagementSettingsManager::~DtInterestManagementSettingsManager ( )
virtual

DTOR.

makVrv::DtInterestManagementSettingsManager::DtInterestManagementSettingsManager ( DtDe de)
protected

Protected CTOR ( use instance(..) ).

Member Function Documentation

static DtInterestManagementSettingsManager& makVrv::DtInterestManagementSettingsManager::instance ( DtDe de)
static

Get an instance of the settings manager.

virtual void makVrv::DtInterestManagementSettingsManager::updateInterestManagementSettings ( )
virtual

Forces a reset of all current interest management settings to what they currently are to force signals to be sent.

virtual int makVrv::DtInterestManagementSettingsManager::ddmRegionSize ( ) const
virtual

Gets the DDM region size to use.

virtual void makVrv::DtInterestManagementSettingsManager::setDdmRegionSize ( int  size)
virtual

Sets the DDM region size to use.

virtual int makVrv::DtInterestManagementSettingsManager::regionUpdateThreshold ( ) const
virtual

Gets the threshold for region updates.

virtual void makVrv::DtInterestManagementSettingsManager::setRegionUpdateThreshold ( int  percentage)
virtual

Sets the threshold for region updates.

virtual bool makVrv::DtInterestManagementSettingsManager::altitudeThresholdEnabled ( ) const
virtual

Gets whether the altitude threshold for DDM regions is enabled.

virtual void makVrv::DtInterestManagementSettingsManager::setAltitudeThresholdEnabled ( bool  enabled)
virtual

Sets whether the altitude threshold for DDM regions is enabled.

virtual int makVrv::DtInterestManagementSettingsManager::altitudeThreshold ( ) const
virtual

Gets the altitude threshold for DDM regions.

virtual void makVrv::DtInterestManagementSettingsManager::setAltitudeThreshold ( int  threshold)
virtual

Sets the altitude threshold for DDM regions.

Friends And Related Function Documentation

template<typename ManagerClass >
ManagerClass& defaultManagerInstanceFunction ( DtDe de,
bool  allowedInSlave 
)
friend

Befriend the manager instance functions for instance retreival/creation.

Befriend the manager instance functions for instance retreival/creation.

Befriend the manager instance functions for instance retrieval/creation.

  Manager requirements:
  1) Static instance function
  2) Protected DtSignalConnectionManager named myConnections.
  3) Member functioned called loadDefaults which takes no arguments.
     and loads the default settings of the manager or factory from disk.
  4) define defaultManagerInstanceFunction as friend.
  5) define defaultManagerRegisterInstanceFunction as friend (see below).
  5) Protected Constructor which only takes a DtDe reference.
  @code 

class Manager { public: static Manager& instance(DtDe& de); void loadDefaults(); protected: template <typename managerclass>=""> friend ManagerClass& defaultManagerInstanceFunction(DtDe& de, bool); template <typename managerclass>=""> friend void defaultManagerRegisterInstanceFunction(DtDe& de, ManagerClass* mgr) Manager(DtDe&); DtSignalConnectionManager myConnections; };

  Then simply in the implementation of instance call 
  defaultManagerInstanceFunction with the de object and return the return
  value.
  @code 

Manager& Manager::instance(DtDe& de) { return defaultManagerInstanceFunction<Manager>(de); }

template<typename ManagerClass >
void defaultManagerRegisterInstanceFunction ( DtDe de,
ManagerClass *  mgr 
)
friend

Befriend the manager instance functions for instance retreival/creation.

Befriend the manager instance functions for instance retreival/creation.

Befriend the manager instance functions for instance retrieval/creation.

  @code 

static void Manager::registerInstance(DtDe& de, Manager* mgr) { defaultManagerRegisterInstanceFunction(de,mgr); } ...else where call. // Assuming class NewManager : public Manager Manager::registerInstance(de,new NewManager(de));


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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)