![]() |
VR-Forces 4.2 Class Documentation
|
class DtVrfPluginRecordManager: More...

Public Types | |
| typedef std::vector < DtVrfPluginRecord > | PluginRecords |
Public Member Functions | |
| DtVrfPluginRecordManager () | |
| CTOR. | |
| virtual | ~DtVrfPluginRecordManager () |
| virtual void | clear () |
| Clears records of plugins to load. | |
| virtual void | readPluginsFrom (const std::string &directory) |
| Reads the plugins to load from the specified directory. | |
| void | setApplication (const std::string &application) |
| Map by application (vrfSim, vrfGui, etc.) | |
| virtual const std::string & | application () const |
| void | setPlatform (const std::string &platform) |
| Map by platform (Windows, Irix, Linux, etc.) | |
| virtual const std::string & | platform () const |
| virtual void | addTransport (const std::string &) |
| Map by protocol (DIS, HLA13, HLA1516 or Independent) | |
| virtual void | removeTransport (const std::string &) |
| virtual const std::vector < std::string > & | transports () const |
| void | setConfiguration (const std::string &) |
| Map by build configuration (Release, Debug or Unknown) | |
| virtual const std::string & | configuration () const |
| virtual std::vector< std::string > | pluginsToLoad () const |
| Returns a list of all plugins to load given. | |
| virtual const PluginRecords & | plugins () const |
| virtual PluginRecords & | plugins () |
| virtual void | addPluginRecord (const DtVrfPluginRecord &) |
| Adds the specified plugin record. | |
| virtual bool | removePluginRecord (const std::string &) |
| The record to remove must be the filename that matches a plugin record. | |
| virtual bool | removePlugin (const std::string &fileName, const std::string &application, const std::string &platform, const std::string &configuration, const std::string &transport) |
| Removes the plugin line from the specified plugin. | |
| virtual bool | addPlugin (const std::string &fileName, const std::string &application, const std::string &platform, const std::string &configuration, const std::string &transport) |
| Adds the plugin line to the specified plugin. | |
| virtual bool | renamePluginRecord (const std::string &curFileName, const std::string &newName) |
| Renames plugin to new file name. Will save new record if auto save is true. Does not delete original. | |
| virtual DtVrfPluginRecord | pluginRecord (const std::string &fileName) const |
| Returns a record with the given filename. If no record exists, blank record is returned. | |
| virtual void | setPlugin (const std::string &fileName, const std::string &application, const std::string &platform, const std::string &configuration, const std::string &transport, const std::string &plugin) |
| Sets the plugin to load. | |
| virtual void | setLoadPlugin (const std::string &filename, bool b) |
| Sets whether or not to load the particular plugin. If record autoSave is true, will automatically save. | |
| bool | autoSave () const |
| void | setAutoSave (bool) |
Protected Attributes | |
| PluginRecords | myPluginRecords |
| std::string | myPlatform |
| std::string | myConfiguration |
| std::string | myApplication |
| std::vector< std::string > | myTransports |
| bool | myAutoSave |
Private Member Functions | |
| DtVrfPluginRecordManager (const DtVrfPluginRecordManager &) | |
| DtVrfPluginRecordManager & | operator= (const DtVrfPluginRecordManager &) |
class DtVrfPluginRecordManager:
This class is a collection of plugin records that are read and saved from the supplied directory. Variables configuration and platform are filled in automatically. Application and transport must be set in order to return correct plugin information
| typedef std::vector<DtVrfPluginRecord> DtVrfPluginRecordManager::PluginRecords |
| DtVrfPluginRecordManager::DtVrfPluginRecordManager | ( | ) |
CTOR.
|
virtual |
|
private |
|
private |
|
virtual |
Clears records of plugins to load.
|
virtual |
Reads the plugins to load from the specified directory.
| void DtVrfPluginRecordManager::setApplication | ( | const std::string & | application | ) |
Map by application (vrfSim, vrfGui, etc.)
|
virtual |
| void DtVrfPluginRecordManager::setPlatform | ( | const std::string & | platform | ) |
Map by platform (Windows, Irix, Linux, etc.)
|
virtual |
|
virtual |
Map by protocol (DIS, HLA13, HLA1516 or Independent)
|
virtual |
|
virtual |
| void DtVrfPluginRecordManager::setConfiguration | ( | const std::string & | ) |
Map by build configuration (Release, Debug or Unknown)
|
virtual |
|
virtual |
Returns a list of all plugins to load given.
|
virtual |
|
virtual |
|
virtual |
Adds the specified plugin record.
Reimplemented in makVrf::DtVrfGuiPluginManager.
|
virtual |
The record to remove must be the filename that matches a plugin record.
Reimplemented in makVrf::DtVrfGuiPluginManager.
|
virtual |
Removes the plugin line from the specified plugin.
Will return true if the plugin line exists and is removed
Reimplemented in makVrf::DtVrfGuiPluginManager.
|
virtual |
Adds the plugin line to the specified plugin.
Will return true if the plugin line is added. If the record already exists, will return false
Reimplemented in makVrf::DtVrfGuiPluginManager.
|
virtual |
Renames plugin to new file name. Will save new record if auto save is true. Does not delete original.
Reimplemented in makVrf::DtVrfGuiPluginManager.
|
virtual |
Returns a record with the given filename. If no record exists, blank record is returned.
|
virtual |
Sets the plugin to load.
|
virtual |
Sets whether or not to load the particular plugin. If record autoSave is true, will automatically save.
Reimplemented in makVrf::DtVrfGuiPluginManager.
| bool DtVrfPluginRecordManager::autoSave | ( | ) | const |
| void DtVrfPluginRecordManager::setAutoSave | ( | bool | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |