MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrOmtReader
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 <
lgrOmtReader/omtReader.h
>
16
class
DtDatatypeFedNode
;
17
class
DtStringTree
;
18
class
DtObjectHistory
;
19
class
DtDatatypeManager
;
20
21
struct
SingleAttribute
22
{
23
int
myByteStreamCount
;
24
int
myStringTreeCount
;
//This value should be the same as byte stream
25
void
*
myByteStream
;
26
DtStringTree
*
myStrTree
;
27
28
virtual
~SingleAttribute
();
29
30
};
31
typedef
std::list<SingleAttribute*>
DtSingleAttributePtrList
;
32
33
//Helper class that contains attribute information
34
class
DT_DLL_OMTREADER
DtAttributeHistory
35
{
36
public
:
37
39
DtAttributeHistory
(
DtDatatypeManager
& dm);
40
42
virtual
~
DtAttributeHistory
();
43
45
46
virtual
void
* getByteStream(
int
lookback = 0);
47
virtual
void
setByteStream(
const
void
* buffer,
int
length);
49
51
52
virtual
void
setParentObject(
DtObjectHistory
*);
53
virtual
DtObjectHistory
* parentObject();
55
57
virtual
DtStringTree
* createStringTree(
const
DtDatatypeFedNode
* omtNode,
58
int
lookback = 0);
59
61
virtual
int
getStringTreeCount(
int
lookback = 0);
62
64
virtual
int
getByteStreamCount(
int
lookback = 0);
65
67
virtual
bool
updatedFlag()
const
;
68
70
virtual
void
resetUpdateFlag();
71
72
protected
:
74
virtual
SingleAttribute
* at(
unsigned
int
index)
const
;
75
76
public
:
//Breaking code convention if this class gets complicated, undo this
77
78
protected
:
79
DtSingleAttributePtrList
myHistory
;
80
DtObjectHistory
*
myObject
;
81
DtDatatypeManager
&
myDatatypeManager
;
82
bool
myUpdatedFlag
;
83
};
84
85
Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (
www.mak.com
)