![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifEmbarkObject.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfEmbarkObject_H_ 00013 #define DtIfEmbarkObject_H_ 00014 00015 #include <vrfExtProtocol/ifaceCont.h> 00016 #include <vlutil/vlNetTypes.h> 00017 #include <vlpi/NetStructs.h> 00018 00020 struct DtNetIfEmbarkObject 00021 { 00022 DtNetU8 myEmbarkObjectNameLength; 00023 DtNetU8 myParentNameLength; 00024 DtNetU8 myLoadOverride; 00025 DtNet64Vector myLoadOverridePosition; 00026 DtNetU8 myPadding; 00027 }; 00028 00034 #include "vrfmsgs/vrfmsgsDefines.h" 00035 class DT_DLL_vrfmsgs DtIfEmbarkObject : public DtSimInterfaceContent 00036 { 00037 00038 public: 00040 DtIfEmbarkObject(); 00041 00043 DtIfEmbarkObject( 00044 const DtIfEmbarkObject & orig); 00045 00047 const DtIfEmbarkObject & operator=( 00048 const DtIfEmbarkObject & orig); 00049 00050 virtual ~DtIfEmbarkObject(); 00051 00053 virtual int type() const; 00054 00056 virtual DtSimInterfaceContent * clone() const; 00057 00058 virtual void setEmbarkObject(const DtString&); 00059 virtual const DtString& embarkObject() const; 00060 00061 virtual void setParent(const DtString&); 00062 virtual const DtString& parent() const; 00063 00064 virtual void setLoadOverride(bool); 00065 virtual bool loadOverride() const; 00066 00067 virtual void setLoadOverridePosition(const DtVector&); 00068 virtual const DtVector& loadOverridePosition() const; 00069 00071 virtual int netRepSize() const; 00072 00074 virtual bool setFromNet(const char* contentBuffer, unsigned contentSize); 00075 00078 virtual bool setToNet(); 00079 00082 virtual void printDataToString(DtString& str); 00083 00087 static DtSimInterfaceContent* creator(); 00088 00089 protected: 00090 DtString myEmbarkObject; 00091 DtString myParent; 00092 bool myLoadOverride; 00093 DtVector myLoadOverridePosition; 00094 }; 00095 00096 #endif