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_GEOMAGNETIC_PROPERTY__H 00041 #define __JAUS_MOBILITY_SET_GEOMAGNETIC_PROPERTY__H 00042 00043 #include "jaus/mobility/mobilitycodes.h" 00044 #include "jaus/core/message.h" 00045 00046 namespace JAUS 00047 { 00055 class JAUS_MOBILITY_DLL SetGeomagneticProperty : public Message 00056 { 00057 public: 00064 class JAUS_MOBILITY_DLL Limits : public JAUS::Limits 00065 { 00066 public: 00067 const static double MinMagneticVariation; 00068 const static double MaxMagneticVariation; 00069 }; 00070 SetGeomagneticProperty(const Address& dest = Address(), const Address& src = Address()); 00071 SetGeomagneticProperty(const SetGeomagneticProperty& message); 00072 ~SetGeomagneticProperty(); 00073 bool SetMagneticVariation(const double radians); 00074 inline double GetMagneticVariation() const { return mMagneticVariation; } 00075 virtual bool IsCommand() const { return true; } 00076 virtual int WriteMessageBody(Packet& packet) const; 00077 virtual int ReadMessageBody(const Packet& packet); 00078 virtual Message* Clone() const { return new SetGeomagneticProperty(*this); } 00079 virtual UInt GetPresenceVector() const { return 0; } 00080 virtual UInt GetPresenceVectorSize() const { return 0; } 00081 virtual UInt GetPresenceVectorMask() const { return 0; } 00082 virtual UShort GetMessageCodeOfResponse() const { return 0; } 00083 virtual std::string GetMessageName() const { return "Set Geomagnetic Property"; } 00084 virtual void ClearMessageBody(); 00085 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return false; } 00086 virtual int RunTestCase() const; 00087 SetGeomagneticProperty& operator=(const SetGeomagneticProperty& message); 00088 protected: 00089 double mMagneticVariation; 00090 }; 00091 } 00092 00093 #endif 00094 /* End of File */