VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stringTree.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 
10 
11 #include <omtReader/omtReader.h>
12 #include <vlutil/vlString.h>
13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
15 {
16 #endif
21 {
22 public:
23 
25  DtStringTree();
26 
28  virtual ~DtStringTree();
29 
31  DtStringTree(const DtStringTree& orig);
32 
34  DtStringTree& operator=(const DtStringTree& rhs);
35 
37  virtual void appendToArray(DtStringTree* backTree);
38 
40  virtual const DtStringTree* findKey(const DtString& key) const;
41 
43  inline void setValue(DtString newValue) {myValue = newValue;};
44  inline const DtString& value() const {return myValue;};
45  inline void setKey(DtString newValue) {myKey = newValue;};
46  inline const DtString& key() const {return myKey;};
47  inline void setDatatype(DtString newValue) {myDatatype = newValue;};
48  inline const DtString& datatype() const {return myDatatype;};
49  inline void setOffset(unsigned int newValue) {myOffset = newValue;};
50  inline unsigned int offset() const {return myOffset;} ;
51 
53  DtStringTree* myNext;
56 
57 protected:
58 
62  unsigned int myOffset; //Offset from the start of the byte stream where you may find this value
63 };
64 
65 #ifdef DtUSE_UTILITIES_NAMESPACE
66 } // end of namespace DtUSE_UTILITIES_NAMESPACE
67 #endif
void setOffset(unsigned int newValue)
Definition: stringTree.h:49
unsigned int offset() const
Definition: stringTree.h:50
Contains the DtString class declaration.
DtString myDatatype
Definition: stringTree.h:61
const DtString & datatype() const
Definition: stringTree.h:48
void setKey(DtString newValue)
Definition: stringTree.h:45
Contains defines for export control for OMT Reader.
const DtString & value() const
Definition: stringTree.h:44
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
void setDatatype(DtString newValue)
Definition: stringTree.h:47
void setValue(DtString newValue)
Accessors.
Definition: stringTree.h:43
const DtString & key() const
Definition: stringTree.h:46
DtStringTree * myArray
Definition: stringTree.h:55
Basically a struct with a destructor, a string tree is a collection of indexed strings used to hold m...
Definition: stringTree.h:20
DtString myValue
Definition: stringTree.h:59
unsigned int myOffset
Definition: stringTree.h:62
DtStringTree * myChild
Definition: stringTree.h:54
Instances of DtString are used to represent strings.
Definition: vlString.h:29
DtString myKey
Definition: stringTree.h:60

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)