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_CORE_MOBILITY_REPORT_ELEMENT_LIST__H 00041 #define __JAUS_CORE_MOBILITY_REPORT_ELEMENT_LIST__H 00042 00043 #include "jaus/mobility/mobilitycodes.h" 00044 #include "jaus/core/message.h" 00045 00046 namespace JAUS 00047 { 00054 class JAUS_MOBILITY_DLL ReportElementList : public Message 00055 { 00056 public: 00057 typedef std::vector<UShort> List; 00058 ReportElementList(const Address& dest = Address(), const Address& src = Address()); 00059 ReportElementList(const ReportElementList& message); 00060 ~ReportElementList(); 00061 inline List* GetElementList() { return &mElementUIDs; } 00062 inline const List* GetElementList() const { return &mElementUIDs; } 00063 virtual bool IsCommand() const { return false; } 00064 virtual int WriteMessageBody(Packet& packet) const; 00065 virtual int ReadMessageBody(const Packet& packet); 00066 virtual Message* Clone() const { return new ReportElementList(*this); } 00067 virtual UInt GetPresenceVector() const { return 0; } 00068 virtual UInt GetPresenceVectorSize() const { return 0; } 00069 virtual UInt GetPresenceVectorMask() const { return 0; } 00070 virtual UShort GetMessageCodeOfResponse() const { return 0; } 00071 virtual std::string GetMessageName() const { return "Report Element List"; } 00072 virtual void ClearMessageBody(); 00073 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return USHORT_SIZE + mElementUIDs.size()*USHORT_SIZE > maxPayloadSize ? true : false; } 00074 virtual int RunTestCase() const; 00075 ReportElementList& operator=(const ReportElementList& message); 00076 protected: 00077 List mElementUIDs; 00078 }; 00079 } 00080 00081 #endif 00082 /* End of File */