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_QUERY_LOCAL_WAYPOINT__H 00041 #define __JAUS_MOBILITY_QUERY_LOCAL_WAYPOINT__H 00042 00043 #include "jaus/core/message.h" 00044 #include "jaus/mobility/mobilitycodes.h" 00045 00046 namespace JAUS 00047 { 00059 class JAUS_MOBILITY_DLL QueryLocalWaypoint : public Message 00060 { 00061 public: 00069 class JAUS_MOBILITY_DLL PresenceVector : public JAUS::PresenceVector 00070 { 00071 public: 00072 const static Byte Z = 0x01; 00073 const static Byte Roll = 0x02; 00074 const static Byte Pitch = 0x04; 00075 const static Byte Yaw = 0x08; 00076 const static Byte WaypointTolerance = 0x10; 00077 const static Byte PathTolerance = 0x20; 00078 }; 00079 QueryLocalWaypoint(const Address& dest = Address(), const Address& src = Address()); 00080 QueryLocalWaypoint(const QueryLocalWaypoint& message); 00081 ~QueryLocalWaypoint(); 00082 void SetPresenceVector(const Byte presenceVector) { mPresenceVector = presenceVector; } 00083 virtual bool IsCommand() const { return false; } 00084 virtual int WriteMessageBody(Packet& packet) const; 00085 virtual int ReadMessageBody(const Packet& packet); 00086 virtual Message* Clone() const { return new QueryLocalWaypoint(*this); } 00087 virtual UInt GetPresenceVector() const { return mPresenceVector; } 00088 virtual UInt GetPresenceVectorSize() const { return BYTE_SIZE; } 00089 virtual UInt GetPresenceVectorMask() const { return 0x3F; } 00090 virtual UShort GetMessageCodeOfResponse() const { return REPORT_LOCAL_WAYPOINT; } 00091 virtual std::string GetMessageName() const { return "Query Local Waypoint"; } 00092 virtual void ClearMessageBody(); 00093 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return false; } 00094 virtual int RunTestCase() const; 00095 QueryLocalWaypoint& operator=(const QueryLocalWaypoint& message); 00096 protected: 00097 Byte mPresenceVector; 00098 }; 00099 } 00100 00101 #endif 00102 /* End of File */