![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifMultiplePlanResponse.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfMultiplePlanResponse_H_ 00013 #define DtIfMultiplePlanResponse_H_ 00014 00015 #include <vlutil/vlString.h> 00016 #include <vrfExtProtocol/ifaceCont.h> 00017 #include "vrfutil/bufferSerialize.h" 00018 00019 #include <vector> 00020 00021 class DtIfPlan; 00022 00032 00033 #include "vrfmsgs/vrfmsgsDefines.h" 00034 00035 class DT_DLL_vrfmsgs DtIfMultiplePlanResponse : public DtSimInterfaceContent 00036 { 00037 public: 00038 00040 DtIfMultiplePlanResponse(); 00041 00043 virtual ~DtIfMultiplePlanResponse(); 00044 00046 DtIfMultiplePlanResponse(const DtIfMultiplePlanResponse& orig); 00047 00049 DtIfMultiplePlanResponse& operator=(const DtIfMultiplePlanResponse& orig); 00050 00052 virtual int type() const; 00053 00054 virtual DtSimInterfaceContent * clone() const; 00055 00057 virtual const std::vector<DtString> & entities() const; 00058 virtual void setEntities(const std::vector<DtString> & name); 00059 00061 virtual void setRequestId(int); 00062 virtual int requestId() const; 00063 00065 virtual void setPlan(DtIfPlan*); 00066 virtual const DtIfPlan* plan() const; 00067 00068 virtual void setSimulationAddress(const DtSimulationAddress&); 00069 virtual const DtSimulationAddress& simulationAddress() const; 00070 00071 virtual int netRepSize() const; 00072 virtual bool setFromNet(const char* contentBuffer, 00073 unsigned contentSize); 00074 virtual bool setToNet(); 00075 00076 virtual void printDataToString(DtString& str); 00077 00078 static DtSimInterfaceContent* creator(); 00079 00080 virtual bool hasPlan() const; 00081 00082 protected: 00083 std::vector<DtString> myEntities; 00084 DtSimulationAddress mySimulationAddress; 00085 DtU32 myRequestId; 00086 DtIfPlan* myPlan; 00087 }; 00088 00089 namespace DtBufferSerialize 00090 { 00093 DT_DLL_vrfmsgs int getSize(const DtIfPlan* const& messagePtr); 00094 00099 DT_DLL_vrfmsgs char *encode(const DtIfPlan* const& messagePtr, char *buffer); 00100 00105 DT_DLL_vrfmsgs const char *decode(DtIfPlan*& messagePtr, const char *buffer); 00106 } 00107 00108 #endif