![]() |
VR-Link API Documentation for HLA Evolved
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *******************************************************************************/ 00007 #pragma once 00008 00009 #include <omtReader/omtReader.h> 00010 #include <vlutil/vlString.h> 00011 00015 class DT_DLL_OMTREADER DtStringTree 00016 { 00017 public: 00018 00020 DtStringTree(); 00021 00023 virtual ~DtStringTree(); 00024 00026 DtStringTree(const DtStringTree& orig); 00027 00029 DtStringTree& operator=(const DtStringTree& rhs); 00030 00032 virtual void mergeStringTree(DtStringTree* backTree); 00033 00035 virtual const DtStringTree* findKey(const DtString& key) const; 00036 00038 inline void setValue(DtString newValue) {myValue = newValue;}; 00039 inline const DtString& value() const {return myValue;}; 00040 inline void setKey(DtString newValue) {myKey = newValue;}; 00041 inline const DtString& key() const {return myKey;}; 00042 inline void setDatatype(DtString newValue) {myDatatype = newValue;}; 00043 inline const DtString& datatype() const {return myDatatype;}; 00044 inline void setOffset(unsigned int newValue) {myOffset = newValue;}; 00045 inline unsigned int offset() const {return myOffset;} ; 00046 00048 DtStringTree* myNext; 00049 DtStringTree* myChild; 00050 DtStringTree* myArray; 00051 00052 protected: 00053 00054 DtString myValue; 00055 DtString myKey; 00056 DtString myDatatype; 00057 unsigned int myOffset; //Offset from the start of the byte stream where you may find this value 00058 }; 00059