VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
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
14
#include <
vrvCore/DtRecordSettingsBackup.h
>
15
16
#include <
makArchives/DtSkyConditionsListRecord.h
>
17
#include <
makArchives/DtEnvironmentRecord.h
>
18
19
#include <
vrfExtObjects/vrfWeatherStateEnums.h
>
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
34
class
DT_DLL_VRVCORE
DtSkyConditionsManager
:
public
DtVirtualBaseClass
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,
55
makArchives::DtSkyConditionsListRecord
& combinedRec) {};
56
58
virtual
void
setFromRecord(
59
const
makArchives::DtSkyConditionsListRecord
& record);
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
99
DtSkyConditionsManager
(
makVrv::DtDe
&);
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(
110
const
makArchives::DtSkyConditionsListRecord
& record );
111
112
113
protected
:
114
115
typedef
boost::unordered_map<
DtVrfWeatherCloudState
,
116
makArchives::DtSkyConditionRecord
>
SkyConditionMap
;
117
118
DtDe
&
myDe
;
119
SkyConditionMap
mySkyConditions
;
120
DtRecordSettingsBackupInterface
*
mySettingsBackup
;
121
};
122
123
typedef
DtRecordSettingsBackup<DtSkyConditionsManager, makArchives::DtSkyConditionsListRecord>
DtSkyConditionsSettingsBackup
;
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
)