![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: patrolPtTask.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00017 00018 00019 #ifndef DtPatrolTwoPointsTask_H_ 00020 #define DtPatrolTwoPointsTask_H_ 00021 00022 00023 #include "vrftasks/simTask.h" 00024 #include "vrfutil/rwString.h" 00025 #include <vlutil/vlNetTypes.h> 00026 00027 00031 struct DtNetPatrolTwoPointsTask 00032 { 00033 DtNetU8 myFirstControlPtNameLength; 00034 DtNetU8 mySecondControlPtNameLength; 00035 }; 00036 00058 #include "vrftasks/vrftasksDefines.h" 00059 class DT_DLL_vrftasks DtPatrolTwoPointsTask : public DtSimTask 00060 { 00061 00062 public: 00063 00065 DtPatrolTwoPointsTask(); 00066 00069 DtPatrolTwoPointsTask(const DtString & writeName, 00070 DtReaderWriterRegistry * parentRegistry = 0); 00071 00073 DtPatrolTwoPointsTask(const DtString & writeName, const 00074 DtPatrolTwoPointsTask& orig, DtReaderWriterRegistry * parentRegistry = 0); 00075 00077 const DtPatrolTwoPointsTask & operator=(const DtPatrolTwoPointsTask & orig); 00078 00079 virtual ~DtPatrolTwoPointsTask(); 00080 00081 virtual int type() const; 00082 00084 virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 00085 parentRegistry = 0) const; 00086 00088 virtual DtString stringRep() const; 00089 00090 virtual const DtString & firstControlPtName() const; 00091 virtual void setFirstControlPtName(const DtString & cpName); 00092 00093 virtual const DtString & secondControlPtName() const; 00094 virtual void setSecondControlPtName(const DtString & cpName); 00095 00098 virtual int netRepSize() const; 00099 00101 virtual bool setFromNet(const char* contentBuffer, 00102 unsigned contentSize); 00103 00106 virtual bool setToNet(); 00107 00108 static DtSimTask * creator(); 00109 00110 protected: 00111 00112 DtRwString myFirstControlPtName; 00113 DtRwString mySecondControlPtName; 00114 00115 }; 00116 00117 00118 #endif