![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /*************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ***************************************************************************/ 00005 00008 00009 #pragma once 00010 00011 #include <omtReader/omtReader.h> 00012 #include <Qt3Support/Q3PtrList> 00013 00014 class DtDatatypeFedNode; 00015 class DtStringTree; 00016 class DtObjectHistory; 00017 00018 struct SingleAttribute 00019 { 00020 int myByteStreamCount; 00021 int myStringTreeCount; //This value should be the same as byte stream 00022 void* myByteStream; 00023 DtStringTree* myStrTree; 00024 00025 virtual ~SingleAttribute(); 00026 00027 }; 00028 00029 //Helper class that contains attribute information 00030 class DT_DLL_OMTREADER DtAttributeHistory 00031 { 00032 public: 00033 00035 DtAttributeHistory(); 00036 00038 virtual ~DtAttributeHistory(); 00039 00040 virtual void* getByteStream(int lookback = 0); 00041 virtual void setByteStream(void* buffer, int length); 00042 00043 virtual void setParentObject(DtObjectHistory*); 00044 virtual DtObjectHistory* parentObject(); 00045 00046 virtual DtStringTree* createStringTree(const DtDatatypeFedNode* omtNode, 00047 int lookback = 0); 00048 00049 virtual int getStringTreeCount(int lookback = 0); 00050 virtual int getByteStreamCount(int lookback = 0); 00051 00052 public: //Breaking code convention if this class gets complicated, undo this 00053 bool myUpdatedFlag; 00054 00055 protected: 00056 Q3PtrList<SingleAttribute> myHistory; 00057 DtObjectHistory* myObject; 00058 }; 00059