![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class is responsible for saving/loading the CIGI settings (all of the mappings) to/from XML files.

Public Member Functions | |
| virtual | ~DtSharedCigiSettingsManager () |
| void | loadCigiSettingsFile (const std::string &settingsName, const std::string &filePath) |
| void | saveCigiSettingsFile (const std::string &settingsName, const std::string &filePath) |
| void | loadAllCigiSettings () |
| void | saveAllCigiSettings () |
| void | addCigiSettings (const std::string &mapperName) |
| void | removeCigiSettings (const std::string &mapperName) |
| void | renameCigiSettings (const std::string &oldName, const std::string &newName) |
| const std::vector< std::string > & | getCigiSettingsNames () const |
| virtual void | setEntityTypeModelMapping (int entType, const std::string &modelName, const std::string &schemaName) |
| virtual void | removeEntityTypeModelMapping (int entType) |
| virtual bool | remapEntityType (int oldType, int newType) |
| virtual bool | renameModelDefinition (const std::string &oldName, const std::string &newName, std::vector< std::string > &mappersChanged) |
| virtual DtSettingsBackup * | settingsBackup (const std::string &) |
| virtual void | saveCurrentSettings () |
| virtual void | addModelStateMapping (int cigiId, int stateId) |
| virtual void | removeModelStateMapping (int cigiId) |
| virtual void | setArtPartMapping (int entType, int cigiId, int disId) |
| virtual void | removeArtPartMapping (int entType, int cigiId) |
| virtual void | addDatabaseMapping (int databaseNumber, const std::string &filename) |
| virtual void | removeDatabaseMapping (int databaseNumber) |
| virtual void | addObserverModeMapping (int observerModeNumber, const std::string &observerModeName) |
| virtual void | removeObserverModeMapping (int observerModeNumber) |
| virtual void | addComponentIdMapping (makArchives::DtCigiComponentClass compClass, int compId, const std::string &compName) |
| virtual void | removeComponentIdMapping (makArchives::DtCigiComponentClass compClass, int compId) |
| virtual void | addAnimationMapping (int animationId, const std::string &animationName) |
| virtual void | removeAnimationMapping (int animationId) |
| virtual void | addActiveRegionMapping (int regionId, const std::string ®ionName) |
| virtual void | removeActiveRegionMapping (int regionId) |
| virtual void | addLightPointGroupMapping (int groupId, const std::string &groupName) |
| virtual void | removeLightPointGroupMapping (int groupId) |
| virtual void | addSensorMapping (int sensorId, const std::string &sensorName) |
| virtual void | removeSensorMapping (int sensorId) |
| virtual void | addFontMapping (int fontId, const std::string &fontName) |
| virtual void | removeFontMapping (int fontId) |
| virtual void | addEnvironmentalConditionMapping (int envId, const std::string &envName) |
| virtual void | removeEnvironmentalConditionMapping (int envId) |
| void | setAutoSave (bool b) |
| bool | autoSave () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtSharedCigiSettingsManager & | instance (DtDe &) |
Public Attributes | |
| boost::signalslib::signal < void(const std::string &)> | signal_currentSettingsChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_settingsToBeDeleted |
Protected Member Functions | |
| virtual void | backup (const std::string &) |
| virtual bool | checkCigiMappers (const std::string &node, DtSettingsChangeObject::UseType t, std::string &inUse) |
| void | initializeCigiSettings (const std::string &filePath) |
| DtSharedCigiSettingsManager (DtDe &de) | |
Private Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| std::string | myCigiSettingsPath |
| std::string | myCigiFactoryPath |
| std::vector< std::string > | myMapperNames |
| bool | myAutoSave |
|
virtual |
Destructor.
|
protected |
Use instance() to create.
|
static |
Get the DtSharedCigiSettingsManager instance.
| void makVrv::DtSharedCigiSettingsManager::loadCigiSettingsFile | ( | const std::string & | settingsName, |
| const std::string & | filePath | ||
| ) |
Reads the CIGI settings from a file and adds the settings to the DtSharedCigiSettings. If backup is true, tries to back up settingsName for possible restore.
| void makVrv::DtSharedCigiSettingsManager::saveCigiSettingsFile | ( | const std::string & | settingsName, |
| const std::string & | filePath | ||
| ) |
Gets the specified CIGI settings from the DtSharedCigiSettings and write to the specified file.
| void makVrv::DtSharedCigiSettingsManager::loadAllCigiSettings | ( | ) |
Finds all CIGI settings in the CIGI settings directory and adds them to the DtSharedCigiSettings.
| void makVrv::DtSharedCigiSettingsManager::saveAllCigiSettings | ( | ) |
Saves all of the CIGI settings to the CIGI settings directory.
| void makVrv::DtSharedCigiSettingsManager::addCigiSettings | ( | const std::string & | mapperName | ) |
Creates a new set of CIGI settings in the DtSharedCigiSettings.
| void makVrv::DtSharedCigiSettingsManager::removeCigiSettings | ( | const std::string & | mapperName | ) |
Removes a set of CIGI settings from the DtSharedCigiSettings.
| void makVrv::DtSharedCigiSettingsManager::renameCigiSettings | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) |
Removes the CIGI settings specified by oldName and adds them as newName in the DtSharedCigiSettings.
| const std::vector<std::string>& makVrv::DtSharedCigiSettingsManager::getCigiSettingsNames | ( | ) | const |
Get the list of settings names in the DtSharedCigiSettings.
|
virtual |
Sets the model definition and schema type for the CIGI entity type. Wraps shared cigi settings for purposes of auto-saving.
|
virtual |
Removes the entity type mapping for the CIGI entity type. Wraps shared cigi settings for purposes of auto-saving.
|
virtual |
Changes the entity type in the mapping from oldType to newType. Wraps shared cigi settings for purposes of auto-saving.
|
virtual |
Goes through all the mappers and renames the model definition to the new name. Returns true if any mappers have changed and puts the changed mappers in the vector. Wraps shared cigi settings for purposes of auto-saving.
|
virtual |
Returns settings backup object for specified cigi setting.
|
virtual |
Saves the currently active settings.
|
virtual |
Adds a CIGI Component ID to state ID mapping.
|
virtual |
Removes the CIGI Component ID to State ID mapping.
|
virtual |
Sets the mapping from CIGI ID to DIS ID for the specified entity type.
|
virtual |
Removes the articulated part mapping for the particular entity type.
|
virtual |
Adds a database number to filename mapping.
|
virtual |
Removes the database mapping with the specified database number.
|
virtual |
Adds an observer mode to observer mode name mapping.
|
virtual |
Removes the observer mode mapping with the specified observer mode number.
|
virtual |
Adds a mapping of component ID to name for the particular component class.
|
virtual |
Removes the component ID mapping with the specified ID for the particular component class.
|
virtual |
Adds an animation ID to name mapping.
|
virtual |
Removes the animation mapping with the specified ID.
|
virtual |
Adds an active sensor region ID to name mapping.
|
virtual |
Removes the active sensor region mapping with the specified ID.
|
virtual |
Adds a light points group mapping to name mapping.
|
virtual |
Removes the light points group mapping with the specified ID.
|
virtual |
Adds an sensor ID to name mapping.
|
virtual |
Removes the sensor mapping with the specified ID.
|
virtual |
Adds an Font ID to name mapping.
|
virtual |
Removes the Font mapping with the specified ID.
|
virtual |
Adds an Environmental Condition ID to name mapping.
|
virtual |
Removes the Environmental Condition mapping with the specified ID.
|
inline |
|
inline |
|
protectedvirtual |
Sent by the shared signaler when an object wants to be backed up. Get a write lock on the settings and back it up!
|
protectedvirtual |
Called to see if model definition is in use by any cigi mapper if the model definition is in use, inUse will have an error message.
|
protected |
Add the CIGI settings specified by filePath to the DtSharedCigiSettings. Called by loadAllCigiSettings.
| boost::signalslib::signal<void (const std::string&)> makVrv::DtSharedCigiSettingsManager::signal_currentSettingsChanged |
Raise signal when a settings object is made the current one.
| boost::signalslib::signal<void (const std::string&)> makVrv::DtSharedCigiSettingsManager::signal_settingsToBeDeleted |
Raise signal when a settings object is deleted.
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |