VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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 Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)