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_SET_ELEMENT__H 00041 #define __JAUS_CORE_MOBILITY_SET_ELEMENT__H 00042 00043 #include "jaus/core/message.h" 00044 #include "jaus/mobility/mobilitycodes.h" 00045 #include "jaus/mobility/list/element.h" 00046 00047 namespace JAUS 00048 { 00058 class JAUS_MOBILITY_DLL SetElement : public Message 00059 { 00060 public: 00061 SetElement(const Address& dest = Address(), const Address& src = Address()); 00062 SetElement(const SetElement& message); 00063 ~SetElement(); 00064 inline Byte GetRequestID() const { return mRequestID; } 00065 inline Byte SetRequestID(const Byte rid) { return mRequestID = rid; } 00066 Element::List* GetElementList() { return &mElements; } 00067 const Element::List* GetElementList() const { return &mElements; } 00068 virtual bool IsCommand() const { return true; } 00069 virtual int WriteMessageBody(Packet& packet) const; 00070 virtual int ReadMessageBody(const Packet& packet); 00071 virtual Message* Clone() const { return new SetElement(*this); } 00072 virtual UInt GetPresenceVector() const { return 0; } 00073 virtual UInt GetPresenceVectorSize() const { return 0; } 00074 virtual UInt GetPresenceVectorMask() const { return 0; } 00075 virtual UShort GetMessageCodeOfResponse() const { return CONFIRM_ELEMENT_REQUEST; } 00076 virtual std::string GetMessageName() const { return "Set Element"; } 00077 virtual void ClearMessageBody(); 00078 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const; 00079 virtual int RunTestCase() const; 00080 SetElement& operator=(const SetElement& message); 00081 protected: 00082 Byte mRequestID; 00083 Element::List mElements; 00084 }; 00085 } 00086 00087 #endif 00088 /* End of File */