00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 #ifndef __JAUS_MOBILITY_SET_GLOBAL_WAYPOINT__H 00041 #define __JAUS_MOBILITY_SET_GLOBAL_WAYPOINT__H 00042 00043 #include "jaus/core/message.h" 00044 #include "jaus/mobility/mobilitycodes.h" 00045 #include "jaus/mobility/drivers/globalwaypoint.h" 00046 #include <cxutils/math/cxmath.h> 00047 00048 namespace JAUS 00049 { 00066 class JAUS_MOBILITY_DLL SetGlobalWaypoint : public Message, public GlobalWaypoint 00067 { 00068 public: 00069 SetGlobalWaypoint(const Address& dest = Address(), const Address& src = Address()); 00070 SetGlobalWaypoint(const SetGlobalWaypoint& message); 00071 ~SetGlobalWaypoint(); 00072 virtual bool IsCommand() const { return true; } 00073 virtual int WriteMessageBody(Packet& packet) const; 00074 virtual int ReadMessageBody(const Packet& packet); 00075 virtual Message* Clone() const { return new SetGlobalWaypoint(*this); } 00076 virtual UInt GetPresenceVector() const { return mPresenceVector; } 00077 virtual UInt GetPresenceVectorSize() const { return BYTE_SIZE; } 00078 virtual UInt GetPresenceVectorMask() const { return 0x3F; } 00079 virtual UShort GetMessageCodeOfResponse() const { return 0; } 00080 virtual std::string GetMessageName() const { return "Set Global Waypoint"; } 00081 virtual void ClearMessageBody(); 00082 virtual void PrintMessageBody() const; 00083 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return false; } 00084 virtual int RunTestCase() const; 00085 SetGlobalWaypoint& operator=(const SetGlobalWaypoint& message); 00086 SetGlobalWaypoint& operator=(const GlobalWaypoint& waypoint); 00087 }; 00088 } 00089 00090 #endif 00091 /* End of File */