VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
omtReader
attributeHistory.h
Go to the documentation of this file.
1
/***************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
***************************************************************************/
5
8
9
#pragma once
10
11
12
13
#include <list>
14
15
#include <
omtReader/omtReader.h
>
16
#ifdef DtUSE_UTILITIES_NAMESPACE
17
namespace
DtUSE_UTILITIES_NAMESPACE
18
{
19
#endif
20
class
DtDatatypeFedNode
;
21
class
DtStringTree
;
22
class
DtObjectHistory
;
23
class
DtDatatypeManager
;
24
25
struct
SingleAttribute
26
{
27
int
myByteStreamCount
;
28
int
myStringTreeCount
;
//This value should be the same as byte stream
29
void
*
myByteStream
;
30
DtStringTree
*
myStrTree
;
31
32
virtual
~
SingleAttribute
();
33
34
};
35
typedef
std::list<SingleAttribute*>
DtSingleAttributePtrList
;
36
37
//Helper class that contains attribute information
38
class
DT_DLL_OMTREADER
DtAttributeHistory
39
{
40
public
:
41
43
DtAttributeHistory
(
DtDatatypeManager
& dm);
44
46
virtual
~
DtAttributeHistory
();
47
49
50
virtual
void
* getByteStream(
int
lookback = 0);
51
virtual
void
setByteStream(
const
void
* buffer,
int
length);
53
55
56
virtual
void
setParentObject(
DtObjectHistory
*);
57
virtual
DtObjectHistory
* parentObject();
59
61
virtual
DtStringTree
* createStringTree(
const
DtDatatypeFedNode
* omtNode,
62
int
lookback = 0);
63
65
virtual
int
getStringTreeCount(
int
lookback = 0);
66
68
virtual
int
getByteStreamCount(
int
lookback = 0);
69
71
virtual
bool
updatedFlag()
const
;
72
74
virtual
void
resetUpdateFlag();
75
76
protected
:
78
virtual
SingleAttribute
* at(
unsigned
int
index)
const
;
79
80
public
:
//Breaking code convention if this class gets complicated, undo this
81
82
protected
:
83
DtSingleAttributePtrList
myHistory
;
84
DtObjectHistory
*
myObject
;
85
DtDatatypeManager
&
myDatatypeManager
;
86
bool
myUpdatedFlag
;
87
};
88
#ifdef DtUSE_UTILITIES_NAMESPACE
89
}
// end of namespace DtUSE_UTILITIES_NAMESPACE
90
#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
)