![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: attrVal.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifdef DtIFSPEC13 00013 00014 #ifndef DtAttrVal_H_ 00015 #define DtAttrVal_H_ 00016 00017 #include "rtiMsConfig.h" 00018 #ifdef DtIFSPEC13DLC 00019 #include "RTI13.h" 00020 #define RTI rti13 00021 #else 00022 #include "RTI.hh" 00023 #endif 00024 00025 class DT_DLL_LRC DtAttrVal 00026 { 00027 public: 00028 00037 DtAttrVal(RTI::Handle h, const char* data, RTI::ULong valueLength, 00038 char *buffPtr=0); 00039 00041 virtual ~DtAttrVal(); 00042 00047 virtual void setData(const char* buff, RTI::ULong valueLength); 00048 00054 virtual void setDataPointer(const char* buff, RTI::ULong valueLength); 00055 00056 virtual RTI::Handle handle() const; 00057 virtual RTI::ULong size() const; 00058 virtual const char *data() const; 00059 00060 protected: 00061 00062 RTI::Handle myHandle; 00063 RTI::ULong mySize; 00064 char* myOwnedBuff; 00065 char* myBuff; 00066 }; 00067 00068 inline RTI::Handle DtAttrVal::handle() const 00069 { 00070 return myHandle; 00071 } 00072 00073 inline RTI::ULong DtAttrVal::size() const 00074 { 00075 return mySize; 00076 } 00077 00078 inline const char* DtAttrVal::data() const 00079 { 00080 return myBuff; 00081 } 00082 00083 #endif 00084 #endif 00085