VR-Forces 4.3.1 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/DtCloudLayerRecord.h
>
18
#include <
makArchives/DtEnvironmentRecord.h
>
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
35
class
DT_DLL_VRVCORE
DtSkyConditionsManager
:
public
DtVirtualBaseClass
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(
50
const
makArchives::DtSkyConditionsListRecord
& record);
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
90
DtSkyConditionsManager
(
makVrv::DtDe
&);
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(
101
const
makArchives::DtSkyConditionsListRecord
& record );
102
103
104
protected
:
105
106
typedef
boost::unordered_map<DtVrfWeatherCloudState,
107
makArchives::DtSkyConditionRecord
>
SkyConditionMap
;
108
109
DtDe
&
myDe
;
110
SkyConditionMap
mySkyConditions
;
111
DtRecordSettingsBackupInterface
*
mySettingsBackup
;
112
};
113
114
typedef
DtRecordSettingsBackup<DtSkyConditionsManager, makArchives::DtSkyConditionsListRecord>
DtSkyConditionsSettingsBackup
;
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
)