VR-Forces 4.3.1 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 
19 
20 #include <vrfExtObjects/vrfWeatherStateEnums.h>
21 
22 #include <boost/unordered_map.hpp>
23 
24 #if 0
25 static const char* theSkyConditionsFilename = "default_CloudCovers.clcx";
26 #endif
27 
28 namespace makVrv
29 {
30  class DtDe;
31 
36  {
37  public:
38 
40  static DtSkyConditionsManager& instance(DtDe& de);
41 
43  virtual ~DtSkyConditionsManager();
44 
46  virtual void getRecord(makArchives::DtSkyConditionsListRecord& record);
47 
49  virtual void setFromRecord(
51 
53  DtVrfWeatherCloudState currentSkyConditions() const;
54 
56  virtual void setCurrentSkyConditions(DtVrfWeatherCloudState value);
57 
59  virtual const makArchives::DtSkyConditionRecord& skyCondition(
60  DtVrfWeatherCloudState value );
61 
63  // virtual void createDefaultFile();
64 
66  virtual void restore();
67 
69  virtual void saveAsDefaults();
70 
72 
73  virtual void exportSettings(const std::string& filename);
74  virtual void importSettings(const std::string& filename);
76 
77  const DtSettingsBackup* settingsBackup() const
78  {
79  return mySettingsBackup;
80  }
81 
82  DtSettingsBackup* settingsBackup()
83  {
84  return mySettingsBackup;
85  }
86 
87  protected:
88 
91 
93  virtual void applySkyCondition( makArchives::DtSkyConditionRecord& rec);
94 
96  virtual void loadDefaults(bool loadOnlyFactorySettings = false);
97 
98  virtual void autoSave();
99 
100  virtual void makeSkyConditionsMap(
102 
103 
104  protected:
105 
106  typedef boost::unordered_map<DtVrfWeatherCloudState,
108 
112  };
113 
115 
116 }
117 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)