VR-Vantage
Loading...
Searching...
No Matches
DtSettings.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2009 MAK Technologies, Inc.
3** All rights reserved.
4*******************************************************************************/
5
9
10#pragma once
11
12#include <vrvCore/vrvCore.h>
13#include <list>
14#include <string>
15
16namespace makVrv
17{
22 {
23 public:
24
26 typedef std::list<DtSettings*> SettingsList;
27
30
32 virtual ~DtSettings();
33
35 void processCommandLine(int argc,char** argv);
36
38 //TODO Refactor for filename, file writer, something.
39 virtual void loadConfigFile(const std::string& filename) = 0;
40
42 //TODO Refactor for filename, file writer, something.
43 virtual void saveConfigFile(const std::string& filename) = 0;
44
47
50
52 const SettingsList& subSettings() const;
53
55 virtual void lockSettings();
56
58 virtual void unlockSettings();
59
61 virtual bool isLocked() const;
62
63 protected:
64
66 virtual void parseCommandLine(int argc,char** argv) = 0;
67
70 };
71}
72
bool myLockFlag
Definition DtSettings.h:68
DtSettings()
Default CTOR.
virtual void unlockSettings()
Make it so the setting can change.
void processCommandLine(int argc, char **argv)
Calls parseCommandLine, on myself and all my sub settings.
virtual void lockSettings()
Make it so the setting can't change.
virtual ~DtSettings()
DTOR.
std::list< DtSettings * > SettingsList
List of settings.
Definition DtSettings.h:26
virtual bool isLocked() const
Check to see if the settings are locked.
virtual void saveConfigFile(const std::string &filename)=0
Abstract save a config file function.
virtual void removeSubsettings(DtSettings *subSettings)
Remove a sub settings object.
SettingsList mySettings
Definition DtSettings.h:69
const SettingsList & subSettings() const
Get the current sub settings.
virtual void parseCommandLine(int argc, char **argv)=0
Abstract parse command line function.
virtual void addSubsettings(DtSettings *subSettings)
Add a sub settings object.
virtual void loadConfigFile(const std::string &filename)=0
Abstract load a config file function.
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
Contains DLL export macros.
#define DT_DLL_VRVCORE
Definition vrvCore.h:20