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_EXTRAS_RANGE_SENSOR_REPORT_RANGE_SENSOR_CONFIGURATION__H 00041 #define __JAUS_EXTRAS_RANGE_SENSOR_REPORT_RANGE_SENSOR_CONFIGURATION__H 00042 00043 #include "jaus/extras/extrascodes.h" 00044 #include "jaus/core/message.h" 00045 #include "jaus/extras/rangesensor/rangesensorconfig.h" 00046 00047 namespace JAUS 00048 { 00056 class JAUS_EXTRAS_DLL ReportRangeSensorConfiguration : public Message 00057 { 00058 public: 00059 ReportRangeSensorConfiguration(const Address& dest = Address(), 00060 const Address& src = Address()) : Message(REPORT_RANGE_SENSOR_CONFIGURATION, dest, src) 00061 { 00062 } 00063 ReportRangeSensorConfiguration(const ReportRangeSensorConfiguration& message) : Message(REPORT_RANGE_SENSOR_CONFIGURATION) 00064 { 00065 *this = message; 00066 } 00067 ~ReportRangeSensorConfiguration() {} 00068 RangeSensorConfig::List* GetConfiguration() { return &mConfiguration; } 00069 const RangeSensorConfig::List* GetConfiguration() const { return &mConfiguration; } 00070 virtual bool IsCommand() const { return false; } 00071 virtual int WriteMessageBody(Packet& packet) const; 00072 virtual int ReadMessageBody(const Packet& packet); 00073 virtual Message* Clone() const { return new ReportRangeSensorConfiguration(*this); } 00074 virtual UInt GetPresenceVector() const { return 0; } 00075 virtual UInt GetPresenceVectorSize() const { return 0; } 00076 virtual UInt GetPresenceVectorMask() const { return 0; } 00077 virtual UShort GetMessageCodeOfResponse() const { return 0; } 00078 virtual std::string GetMessageName() const { return "Report Range Sensor Configuration"; } 00079 virtual void ClearMessageBody() {} 00080 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize) const; 00081 ReportRangeSensorConfiguration& operator=(const ReportRangeSensorConfiguration& message) 00082 { 00083 CopyHeaderData(&message); 00084 mConfiguration = message.mConfiguration; 00085 return *this; 00086 } 00087 protected: 00088 RangeSensorConfig::List mConfiguration; 00089 }; 00090 } 00091 00092 #endif 00093 /* End of File */