VR-Forces Development_Version 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 
48  virtual void setFromRecord(
50 
52  DtVrfWeatherCloudState currentSkyConditions() const;
53 
55  virtual void setCurrentSkyConditions(DtVrfWeatherCloudState value);
56 
58  virtual const makArchives::DtSkyConditionRecord& skyCondition(
59  DtVrfWeatherCloudState value );
60 
62  // virtual void createDefaultFile();
63 
65  virtual void restore();
66 
68  virtual void saveAsDefaults();
69 
71 
72  virtual void exportSettings(const std::string& filename);
73  virtual void importSettings(const std::string& filename);
75 
76  const DtSettingsBackup* settingsBackup() const
77  {
78  return mySettingsBackup;
79  }
80 
81  DtSettingsBackup* settingsBackup()
82  {
83  return mySettingsBackup;
84  }
85 
86  protected:
87 
90 
92  virtual void applySkyCondition( makArchives::DtSkyConditionRecord& rec);
93 
95  virtual void loadDefaults(bool loadOnlyFactorySettings = false);
96 
97  virtual void autoSave();
98 
99  virtual void makeSkyConditionsMap(
101 
102 
103  protected:
104 
105  typedef boost::unordered_map<DtVrfWeatherCloudState,
107 
111  };
112 
114 
115 }
116 

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)