00001 /****************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00009 00010 #ifndef baseHla1516Value_H_ 00011 #define baseHla1516Value_H_ 00012 00013 #if DtHLA 00014 #if DtHLA_1516 00015 00016 #include "lgrSim.h" 00017 #include "baseHlaValue.h" 00018 #include "lgrVariableLengthData.h" 00019 00020 namespace MAKLogger 00021 { 00024 class DT_DLL_LGRSIM DtBaseHla1516Value : virtual public DtBaseHlaValue 00025 { 00026 public: 00028 DtBaseHla1516Value( const DtString& name, DtU32 handle, 00029 const DtLgrVariableLengthData& code); 00030 00032 virtual ~DtBaseHla1516Value(); 00033 00035 DtBaseHla1516Value( const DtBaseHla1516Value& src ); 00036 00038 DtBaseHla1516Value& operator=( const DtBaseHla1516Value& src ); 00039 00040 00042 inline const DtLgrVariableLengthData& encodedHandle() const; 00043 00045 00046 inline void setCode(const DtLgrVariableLengthData& code); 00047 inline void setCode(const void* data, int size); 00049 00051 inline const void* code() const; 00052 00054 inline int codeLength() const; 00055 00056 private: 00057 00059 DtLgrVariableLengthData myCode; 00060 }; 00061 00062 00063 inline const DtLgrVariableLengthData& DtBaseHla1516Value::encodedHandle() const 00064 { 00065 return myCode; 00066 } 00067 00068 inline void DtBaseHla1516Value::setCode(const DtLgrVariableLengthData& code) 00069 { 00070 myCode = code; 00071 } 00072 00073 inline void DtBaseHla1516Value::setCode(const void* data, int size) 00074 { 00075 myCode = DtLgrVariableLengthData(data,size); 00076 } 00077 00078 inline const void* DtBaseHla1516Value::code() const 00079 { 00080 return myCode.data(); 00081 } 00082 00083 00084 inline int DtBaseHla1516Value::codeLength() const 00085 { 00086 return myCode.size(); 00087 } 00088 00089 } 00090 00091 #endif 00092 #endif 00093 #endif