VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 /*******************************************************************************
6 ** $RCSfile: DtSettings.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
16 #include <list>
17 #include <string>
18 
19 namespace makVrv
20 {
25  {
26  public:
27 
29  typedef std::list<DtSettings*> SettingsList;
30 
32  DtSettings();
33 
35  virtual ~DtSettings();
36 
38  void processCommandLine(int argc,char** argv);
39 
41  //TODO Refactor for filename, file writer, something.
42  virtual void loadConfigFile(const std::string& filename) = 0;
43 
45  //TODO Refactor for filename, file writer, something.
46  virtual void saveConfigFile(const std::string& filename) = 0;
47 
49  virtual void addSubsettings(DtSettings* subSettings);
50 
52  virtual void removeSubsettings(DtSettings* subSettings);
53 
55  const SettingsList& subSettings() const;
56 
58  virtual void lockSettings();
59 
61  virtual void unlockSettings();
62 
64  virtual bool isLocked() const;
65 
66  protected:
67 
69  virtual void parseCommandLine(int argc,char** argv) = 0;
70 
71  bool myLockFlag;
73  };
74 }
75 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)