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
envObject.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 envObject_H__
12
#define envObject_H__
13
14
#include "
envNamedList.h
"
15
#include "
envObjectSync.h
"
16
#include <map>
17
18
#ifdef DtUSE_UTILITIES_NAMESPACE
19
namespace
DtUSE_UTILITIES_NAMESPACE
20
{
21
#endif
22
23
26
class
DT_DLL_MTL
DtEnvObject
:
public
DtEnvNamedList
27
{
28
public
:
29
friend
class
DtEnvironment
;
30
friend
class
DtEnvObjectSync
;
31
32
virtual
DtString
type()
const
;
33
virtual
DtString
name()
const
;
34
35
virtual
DtEnvValueSP
first()
const
;
36
37
virtual
void
setType(
const
DtString
& type);
38
virtual
void
setName(
const
DtString
& type);
39
40
DtEnvValueSP
attribute(
const
DtString
& name)
const
;
41
DtString
attributeValue(
const
DtString
& name)
const
;
42
43
static
bool
isObject(
DtEnvValueSP
);
44
static
bool
isObject(
DtEnvValueSP
,
const
DtString
& type);
45
static
bool
isObject(
DtEnvValueSP
,
const
DtString
& name,
const
DtString
& type);
46
47
static
DtEnvObject
* castToObject(
DtEnvValueSP
);
48
50
virtual
DtEnvObjectSync
* sync()
const
;
51
52
protected
:
53
DtEnvObject
(
const
DtString
& objName,
const
DtString
& objType,
const
DtString
& objValue);
54
56
virtual
DtEnvValue
* clone()
const
;
57
59
virtual
void
valueChanged();
60
62
virtual
void
childChanged(
DtEnvValue
*);
63
65
virtual
void
append(
DtEnvValueSP
);
66
68
virtual
void
remove
(
DtEnvValueSP
);
69
71
virtual
void
setSync(
DtEnvObjectSync
* sync);
72
73
typedef
std::map<DtString,DtEnvValueWP>
DtEnvAttributeMap
;
74
DtEnvAttributeMap
myAttributes
;
75
DtEnvObjectSync
*
mySyncObject
;
76
77
};
78
79
#ifdef DtUSE_UTILITIES_NAMESPACE
80
}
81
#endif
82
83
#endif
Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)