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_DISCOVERY_QUERY_SERVICES__H 00041 #define __JAUS_CORE_DISCOVERY_QUERY_SERVICES__H 00042 00043 #include "jaus/core/corecodes.h" 00044 #include "jaus/core/message.h" 00045 #include <map> 00046 #include <vector> 00047 00048 namespace JAUS 00049 { 00060 class JAUS_CORE_DLL QueryServices : public Message 00061 { 00062 public: 00063 typedef std::map<Byte, std::vector<Byte> > List; 00064 QueryServices(const Address& dest = Address(), const Address& src = Address()); 00065 QueryServices(const QueryServices& message); 00066 ~QueryServices(); 00067 List* GetNodeList() { return &mNodeList; } 00068 const List* GetNodeList() const { return &mNodeList; } 00069 virtual bool IsCommand() const { return false; } 00070 virtual int WriteMessageBody(Packet& packet) const; 00071 virtual int ReadMessageBody(const Packet& packet); 00072 virtual Message* Clone() const { return new QueryServices(*this); } 00073 virtual UInt GetPresenceVector() const { return 0; } 00074 virtual UInt GetPresenceVectorSize() const { return 0; } 00075 virtual UInt GetPresenceVectorMask() const { return 0; } 00076 virtual UShort GetMessageCodeOfResponse() const { return REPORT_SERVICES; } 00077 virtual std::string GetMessageName() const { return "Query Services"; } 00078 virtual void ClearMessageBody(); 00079 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize) const { return false; } 00080 QueryServices& operator=(const QueryServices& message); 00081 protected: 00082 List mNodeList; 00083 }; 00084 } 00085 00086 #endif 00087 /* End of File */