![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2001 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifVrfObjCrtd.h,v $ $Revision: 1.18 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfVrfObjectCreated_H_ 00013 #define DtIfVrfObjectCreated_H_ 00014 00015 #include <vrfExtProtocol/ifaceCont.h> 00016 #include <vlutil/vlString.h> 00017 #include <vrfExtProtocol/objType.h> 00018 #include <vlpi/disEnums.h> 00019 #include <vl/globalObjDes.h> 00020 #include "vrfmsgs/vrfmsgsDefines.h" 00021 00024 struct DtNetIfVrfObjectCreated 00025 { 00026 DtNetU32 myRequestId; 00027 DtNetEntityIdentifier myObjectIdentifier; 00028 DtNetU8 myNameLength; 00029 DtNetU32 padding1; 00030 DtNetU8 padding2; 00031 }; 00032 00033 00047 00048 class DT_DLL_vrfmsgs DtIfVrfObjectCreated : public DtSimInterfaceContent 00049 { 00050 public: 00051 00053 DtIfVrfObjectCreated(); 00054 00056 virtual ~DtIfVrfObjectCreated(); 00057 00059 DtIfVrfObjectCreated(const DtIfVrfObjectCreated& orig); 00060 00062 DtIfVrfObjectCreated& operator=(const DtIfVrfObjectCreated& orig); 00063 00065 virtual DtSimInterfaceContent * clone() const; 00066 00069 virtual int type() const; 00070 00074 virtual void setObjectIdentifier(const DtEntityIdentifier & objectIdentifier); 00075 virtual const DtEntityIdentifier & objectIdentifier() const; 00076 00079 virtual unsigned long requestId() const; 00080 virtual void setRequestId(unsigned long requestId); 00081 00083 virtual void setObjectName(const DtString & objectName); 00084 virtual const DtString & objectName() const; 00085 00086 virtual int netRepSize() const; 00087 virtual bool setFromNet(const char* contentBuffer, 00088 unsigned contentSize); 00089 virtual bool setToNet(); 00090 00091 virtual void printDataToString(DtString& str); 00092 00093 static DtSimInterfaceContent* creator(); 00094 00095 protected: 00096 DtEntityIdentifier myObjectIdentifier; 00097 DtU32 myRequestId; 00098 DtString myObjectName; 00099 }; 00100 00101 #endif