VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEnvironmentList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 #include <list>
16 #include <string>
17 #include <vector>
18 
19 namespace makArchives
20 {
21  class DtEnvironmentListRecord;
22  class DtEnvironmentRecord;
23 }
24 
25 namespace makVrv
26 {
27  class DtDe;
28 
33  {
34  public:
35 
38 
40  virtual ~DtEnvironmentList();
41 
45  void getRecord(makArchives::DtEnvironmentListRecord& record);
46 
49  void setFromRecord(
52 
56  void getEnvironmentNames(std::vector<std::string>& names) const;
57 
62  void setEnvironmentNames(const std::vector<std::string>& names);
63 
68  getEnvironment(const std::string& name) const;
69 
76  void addOrReplaceEnvironment(
77  const makArchives::DtEnvironmentRecord& environment);
78 
81  void removeEnvironment(const std::string& name);
82 
87  void renameEnvironment(
88  const std::string& oldName, const std::string& newName);
90 
91 
96  const makArchives::DtEnvironmentRecord& getDefaultEnvironment() const;
97 
105  void setDefaultEnvironment(
106  const makArchives::DtEnvironmentRecord& environment);
107 
110  const std::string& getDefaultEnvironmentName() const;
111 
116  void setDefaultEnvironment(const std::string& name);
117  // @}
118 
122  void loadDefaults(bool loadOnlyFactorySettings = false);
123 
125  void restore();
126 
128  void saveAsDefaults();
130 
132 
133  void exportSettings(const std::string& filename);
134  void importSettings(const std::string& filename);
136 
139  const DtSettingsBackup* settingsBackup() const;
140  DtSettingsBackup* settingsBackup();
142 
143  protected:
144 
147 
149  virtual void saveEnvironmentList();
150 
151  protected:
152  static const std::string myFileName;
153 
156 
158  typedef std::list<makArchives::DtEnvironmentRecord> SettingsList;
159 
162  };
163 
165 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)