VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSkyConditionsManager.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>
13 
15 
18 
20 
21 #include <boost/unordered_map.hpp>
22 
23 #if 0
24 static const char* theSkyConditionsFilename = "default_CloudCovers.clcx";
25 #endif
26 
27 namespace makVrv
28 {
29  class DtDe;
30 
35  {
36  public:
37 
39  static DtSkyConditionsManager& instance(DtDe& de);
40 
42  virtual ~DtSkyConditionsManager();
43 
45  virtual void getRecord(makArchives::DtSkyConditionsListRecord& record);
46 
49  virtual void getSplitRecord(std::vector<makArchives::DtSkyConditionsListRecord>& rec,
50  std::vector<std::string>& fileNames) {};
51 
54  virtual void addRecords(makArchives::DtSkyConditionsListRecord& recs,
56 
58  virtual void setFromRecord(
60 
62  DtVrfWeatherCloudState currentSkyConditions() const;
63 
65  virtual void setCurrentSkyConditions(DtVrfWeatherCloudState value);
66 
68  virtual const makArchives::DtSkyConditionRecord& skyCondition(
69  DtVrfWeatherCloudState value );
70 
72  // virtual void createDefaultFile();
73 
75  virtual void restore();
76 
78  virtual void saveAsDefaults();
79 
81 
82  virtual void exportSettings(const std::string& filename);
83  virtual void importSettings(const std::string& filename);
85 
86  const DtSettingsBackup* settingsBackup() const
87  {
88  return mySettingsBackup;
89  }
90 
91  DtSettingsBackup* settingsBackup()
92  {
93  return mySettingsBackup;
94  }
95 
96  protected:
97 
100 
102  virtual void applySkyCondition( makArchives::DtSkyConditionRecord& rec);
103 
105  virtual void loadDefaults(bool loadOnlyFactorySettings = false);
106 
107  virtual void autoSave();
108 
109  virtual void makeSkyConditionsMap(
111 
112 
113  protected:
114 
115  typedef boost::unordered_map<DtVrfWeatherCloudState,
117 
121  };
122 
124 
125 }
126 

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)