MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
22 {
24  int myStringTreeCount; //This value should be the same as byte stream
25  void* myByteStream;
27 
28  virtual ~SingleAttribute();
29 
30 };
31 typedef std::list<SingleAttribute*> DtSingleAttributePtrList;
32 
33 //Helper class that contains attribute information
35 {
36 public:
37 
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:
83 };
84 
85 
void * myByteStream
Definition: attributeHistory.h:25
bool myUpdatedFlag
Definition: attributeHistory.h:82
virtual ~SingleAttribute()
DtObjectHistory * myObject
Definition: attributeHistory.h:80
This class handles the conversion between a byte stream and an English readable view of the data in a...
Definition: datatypeManager.h:41
Contains defines for export control for OMT Reader.
std::list< SingleAttribute * > DtSingleAttributePtrList
Definition: attributeHistory.h:31
#define DT_DLL_OMTREADER
Definition: omtReader.h:23
DtStringTree * myStrTree
Definition: attributeHistory.h:26
DtDatatypeManager & myDatatypeManager
Definition: attributeHistory.h:81
Definition: objectHistory.h:36
DtSingleAttributePtrList myHistory
Definition: attributeHistory.h:79
Definition: attributeHistory.h:21
int myStringTreeCount
Definition: attributeHistory.h:24
int myByteStreamCount
Definition: attributeHistory.h:23
Basically a struct with a destructor, a string tree is a collection of indexed strings used to hold m...
Definition: stringTree.h:16
Represents an attribute inside a object class.
Definition: datatypeFedNode.h:21
Definition: attributeHistory.h:34

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)