![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: followEnt.h,v $ $Revision: 1.16 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00017 00018 00019 #ifndef DtFollowEntityTask_H_ 00020 #define DtFollowEntityTask_H_ 00021 00022 00023 #include "vrftasks/simTask.h" 00024 #include "vrfutil/rwString.h" 00025 #include "vrfutil/rwVector.h" 00026 #include <vlpi/NetStructs.h> 00027 00028 struct DtNetFollowEntityTask 00029 { 00030 DtNet64Vector myOffsetVector; 00031 DtNetU8 myEntityToFollowLength; 00032 }; 00033 00072 #include "vrftasks/vrftasksDefines.h" 00073 class DT_DLL_vrftasks DtFollowEntityTask : public DtSimTask 00074 { 00075 00076 public: 00077 00079 DtFollowEntityTask(); 00080 00083 DtFollowEntityTask(const DtString & writeName, 00084 DtReaderWriterRegistry * parentRegistry = 0); 00085 00088 DtFollowEntityTask(const DtString & writeName, const DtFollowEntityTask & 00089 orig,DtReaderWriterRegistry * parentRegistry = 0); 00090 00092 const DtFollowEntityTask & operator=(const DtFollowEntityTask & orig); 00093 00094 virtual ~DtFollowEntityTask(); 00095 00097 virtual int type() const; 00098 00100 virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 00101 parentRegistry = 0) const; 00102 00104 virtual DtString stringRep() const; 00105 00107 virtual const DtString & entityToFollow() const; 00108 virtual void setEntityToFollow(const DtString & entity); 00109 00111 virtual const DtVector & offsetVector() const; 00112 virtual void setOffsetVector(const DtVector& offsets); 00113 00116 virtual int netRepSize() const; 00117 00119 virtual bool setFromNet(const char* contentBuffer, 00120 unsigned contentSize); 00121 00124 virtual bool setToNet(); 00125 00126 static DtSimTask * creator(); 00127 00128 protected: 00129 00130 DtRwString myEntityToFollow; 00131 DtRwVector myOffsetVector; 00132 00133 }; 00134 00135 00136 #endif