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_CONFIGURATION__H 00041 #define __JAUS_CORE_DISCOVERY_QUERY_CONFIGURATION__H 00042 00043 #include "jaus/core/corecodes.h" 00044 #include "jaus/core/message.h" 00045 00046 namespace JAUS 00047 { 00056 class JAUS_CORE_DLL QueryConfiguration : public Message 00057 { 00058 public: 00059 // Filters for types of event data to request. 00060 enum Type 00061 { 00062 Reserved = 1, 00063 SubsystemConfiguration, 00064 NodeConfiguration 00065 }; 00066 QueryConfiguration(const Address& dest = Address(), const Address& src = Address()); 00067 QueryConfiguration(const QueryConfiguration& message); 00068 ~QueryConfiguration(); 00069 Type GetQueryType() const { return mQueryType; } 00070 void SetQueryType(const Type queryType) { mQueryType = queryType; } 00071 virtual bool IsCommand() const { return false; } 00072 virtual int WriteMessageBody(Packet& packet) const; 00073 virtual int ReadMessageBody(const Packet& packet); 00074 virtual Message* Clone() const { return new QueryConfiguration(*this); } 00075 virtual UInt GetPresenceVector() const { return 0; } 00076 virtual UInt GetPresenceVectorSize() const { return 0; } 00077 virtual UInt GetPresenceVectorMask() const { return 0; } 00078 virtual UShort GetMessageCodeOfResponse() const { return REPORT_CONFIGURATION; } 00079 virtual std::string GetMessageName() const { return "Query Configuration"; } 00080 virtual void ClearMessageBody(); 00081 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize) const { return false; } 00082 QueryConfiguration& operator=(const QueryConfiguration& message); 00083 protected: 00084 Type mQueryType; 00085 }; 00086 } 00087 00088 #endif 00089 /* End of File */