VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
16 namespace makVrv
17 {
22  {
23  public:
24 
26  typedef std::list<DtSettings*> SettingsList;
27 
29  DtSettings();
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 
46  virtual void addSubsettings(DtSettings* subSettings);
47 
49  virtual void removeSubsettings(DtSettings* subSettings);
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 
68  bool myLockFlag;
70  };
71 }
72 


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)