VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
attributeHistory.h
Go to the documentation of this file.
1 /***************************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
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 
26 {
28  int myStringTreeCount; //This value should be the same as byte stream
29  void* myByteStream;
31 
32  virtual ~SingleAttribute();
33 
34 };
35 typedef std::list<SingleAttribute*> DtSingleAttributePtrList;
36 
37 //Helper class that contains attribute information
39 {
40 public:
41 
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:
84  DtObjectHistory* myObject;
87 };
88 #ifdef DtUSE_UTILITIES_NAMESPACE
89 } // end of namespace DtUSE_UTILITIES_NAMESPACE
90 #endif
void * myByteStream
Definition: attributeHistory.h:29
bool myUpdatedFlag
Definition: attributeHistory.h:86
DtObjectHistory * myObject
Definition: attributeHistory.h:84
This class handles the conversion between a byte stream and an English readable view of the data in a...
Definition: datatypeManager.h:45
Contains defines for export control for OMT Reader.
std::list< SingleAttribute * > DtSingleAttributePtrList
Definition: attributeHistory.h:35
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
DtStringTree * myStrTree
Definition: attributeHistory.h:30
DtDatatypeManager & myDatatypeManager
Definition: attributeHistory.h:85
DtSingleAttributePtrList myHistory
Definition: attributeHistory.h:83
Definition: attributeHistory.h:25
int myStringTreeCount
Definition: attributeHistory.h:28
int myByteStreamCount
Definition: attributeHistory.h:27
Basically a struct with a destructor, a string tree is a collection of indexed strings used to hold m...
Definition: stringTree.h:20
Represents an attribute inside a object class.
Definition: datatypeFedNode.h:25
Definition: attributeHistory.h:38

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)