VR-Forces Development_Version 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
48
virtual
void
setFromRecord(
49
const
makArchives::DtSkyConditionsListRecord
& record);
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
89
DtSkyConditionsManager
(
makVrv::DtDe
&);
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(
100
const
makArchives::DtSkyConditionsListRecord
& record );
101
102
103
protected
:
104
105
typedef
boost::unordered_map<
DtVrfWeatherCloudState
,
106
makArchives::DtSkyConditionRecord
>
SkyConditionMap
;
107
108
DtDe
&
myDe
;
109
SkyConditionMap
mySkyConditions
;
110
DtRecordSettingsBackupInterface
*
mySettingsBackup
;
111
};
112
113
typedef
DtRecordSettingsBackup<DtSkyConditionsManager, makArchives::DtSkyConditionsListRecord>
DtSkyConditionsSettingsBackup
;
114
115
}
116
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)