MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
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
#include "
omtReader.h
"
12
#include <Qt3Support/Q3PtrList>
13
14
class
DtDatatypeFedNode
;
15
class
DtStringTree
;
16
class
DtObjectHistory
;
17
class
DtDatatypeManager
;
18
19
struct
SingleAttribute
20
{
21
int
myByteStreamCount
;
22
int
myStringTreeCount
;
//This value should be the same as byte stream
23
void
*
myByteStream
;
24
DtStringTree
*
myStrTree
;
25
26
virtual
~SingleAttribute
();
27
28
};
29
30
//Helper class that contains attribute information
31
class
DT_DLL_OMTREADER
DtAttributeHistory
32
{
33
public
:
34
36
DtAttributeHistory
(
DtDatatypeManager
& dm);
37
39
virtual
~
DtAttributeHistory
();
40
42
43
virtual
void
* getByteStream(
int
lookback = 0);
44
virtual
void
setByteStream(
const
void
* buffer,
int
length);
46
48
49
virtual
void
setParentObject(
DtObjectHistory
*);
50
virtual
DtObjectHistory
* parentObject();
52
54
virtual
DtStringTree
* createStringTree(
const
DtDatatypeFedNode
* omtNode,
55
int
lookback = 0);
56
58
virtual
int
getStringTreeCount(
int
lookback = 0);
59
61
virtual
int
getByteStreamCount(
int
lookback = 0);
62
64
virtual
bool
updatedFlag()
const
;
65
67
virtual
void
resetUpdateFlag();
68
69
public
:
//Breaking code convention if this class gets complicated, undo this
70
71
protected
:
72
Q3PtrList<SingleAttribute>
myHistory
;
73
DtObjectHistory
*
myObject
;
74
DtDatatypeManager
&
myDatatypeManager
;
75
bool
myUpdatedFlag
;
76
};
77
Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)