![]() |
VR-Forces Development_Version Class Documentation
|
The settings object is an abstract class for storing data which is typically gotten from a command line, or configuration file. More...
Public Types | |
| typedef std::list< DtSettings * > | SettingsList |
| List of settings. | |
Public Member Functions | |
| DtSettings () | |
| Default CTOR. | |
| virtual | ~DtSettings () |
| DTOR. | |
| void | processCommandLine (int argc, char **argv) |
| Calls parseCommandLine, on myself and all my sub settings. | |
| virtual void | loadConfigFile (const std::string &filename)=0 |
| Abstract load a config file function. | |
| virtual void | saveConfigFile (const std::string &filename)=0 |
| Abstract save a config file function. | |
| virtual void | addSubsettings (DtSettings *subSettings) |
| Add a sub settings object. | |
| virtual void | removeSubsettings (DtSettings *subSettings) |
| Remove a sub settings object. | |
| const SettingsList & | subSettings () const |
| Get the current sub settings. | |
| virtual void | lockSettings () |
| Make it so the setting can't change. | |
| virtual void | unlockSettings () |
| Make it so the setting can change. | |
| virtual bool | isLocked () const |
| Check to see if the settings are locked. | |
Protected Member Functions | |
| virtual void | parseCommandLine (int argc, char **argv)=0 |
| Abstract parse command line function. | |
Protected Attributes | |
| bool | myLockFlag |
| SettingsList | mySettings |
The settings object is an abstract class for storing data which is typically gotten from a command line, or configuration file.
| typedef std::list<DtSettings*> makVrv::DtSettings::SettingsList |
List of settings.
| makVrv::DtSettings::DtSettings | ( | ) |
Default CTOR.
|
virtual |
DTOR.
| void makVrv::DtSettings::processCommandLine | ( | int | argc, |
| char ** | argv | ||
| ) |
Calls parseCommandLine, on myself and all my sub settings.
|
pure virtual |
Abstract load a config file function.
|
pure virtual |
Abstract save a config file function.
|
virtual |
Add a sub settings object.
|
virtual |
Remove a sub settings object.
| const SettingsList& makVrv::DtSettings::subSettings | ( | ) | const |
Get the current sub settings.
|
virtual |
Make it so the setting can't change.
|
virtual |
Make it so the setting can change.
|
virtual |
Check to see if the settings are locked.
|
protectedpure virtual |
Abstract parse command line function.
|
protected |
|
protected |