VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
mtl
envValue.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
10
11
#ifndef envValue_H__
12
#define envValue_H__
13
14
#if DT_ENV_THREAD_SAFE
15
#include <
vlutil/vlThreadSafe.h
>
16
#endif
17
18
#include <
vlutil/vlSmartPointers.h
>
19
#include <
vlutil/vlString.h
>
20
#include <list>
21
22
#ifdef DtUSE_UTILITIES_NAMESPACE
23
namespace
DtUSE_UTILITIES_NAMESPACE
24
{
25
#endif
26
27
28
class
DtEnvironment
;
29
class
DtEnvValue
;
30
31
typedef
DtBoost::shared_ptr<DtEnvValue>
DtEnvValueSP
;
32
typedef
DtBoost::weak_ptr<DtEnvValue>
DtEnvValueWP
;
33
typedef
std::list<DtEnvValueSP>
DtEnvValueList
;
34
35
#if DT_ENV_THREAD_SAFE
36
typedef
DtThreadSafe<DtString>
DtEnvValueType
;
37
#else
38
typedef
DtString
DtEnvValueType
;
39
typedef
DtEnvValueList::iterator
DtEnvValueIterator
;
40
#endif
41
44
class
DT_DLL_MTL
DtEnvValue
45
{
46
public
:
47
friend
class
DT_DLL_MTL
DtEnvironment
;
48
friend
class
DtEnvList
;
49
50
#define RESERVED_VALUE(N) (1 << N)
51
enum
DtEnvValueFormat
52
{
53
Value
= 0,
54
Listed
= 1,
55
Named
=
RESERVED_VALUE
(1),
56
Typed
=
RESERVED_VALUE
(2),
57
Native
=
RESERVED_VALUE
(3),
58
59
NamedListed
=
Named
|
Listed
,
60
NamedTypedListed
=
Named
|
Typed
|
Listed
61
};
62
63
explicit
DtEnvValue
(
const
DtString
&
value
);
64
virtual
~DtEnvValue
();
65
67
virtual
DtString
value
()
const
;
68
70
virtual
DtString
unmodifiedValue
()
const
;
71
73
virtual
void
setValue
(
const
DtString
&
value
);
74
76
virtual
DtEnvValueSP
parent
()
const
;
77
79
virtual
void
setParent
(
DtEnvValueSP
parent
);
80
82
DtEnvValueFormat
format
()
const
;
83
84
protected
:
85
virtual
void
valueChanged
();
86
virtual
void
childChanged
(
DtEnvValue
*);
87
88
void
addFormat
(
DtEnvValueFormat
format
);
89
90
DtEnvValue
(
const
DtString
&
value
,
DtEnvValueFormat
format
);
91
virtual
DtEnvValue
*
clone
()
const
;
92
93
DtEnvValueFormat
myFormat
;
94
DtEnvValueType
myValue
;
95
DtEnvValueType
myUnmodifiedValue
;
96
DtEnvValueWP
myParent
;
97
};
98
99
#ifdef DtUSE_UTILITIES_NAMESPACE
100
}
101
#endif
102
103
104
#endif
Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)