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_ACCESS_CONTROL_REPORT_CONTROL__H 00041 #define __JAUS_CORE_ACCESS_CONTROL_REPORT_CONTROL__H 00042 00043 #include "jaus/core/corecodes.h" 00044 #include "jaus/core/message.h" 00045 00046 namespace JAUS 00047 { 00057 class JAUS_CORE_DLL ReportControl : public Message 00058 { 00059 public: 00066 class JAUS_CORE_DLL Limits : public JAUS::Limits 00067 { 00068 public: 00069 static const Byte MaxNodeID; 00070 static const Byte MaxComponentID; 00071 }; 00072 ReportControl(const Address& dest = Address(), const Address& src = Address()); 00073 ReportControl(const ReportControl& message); 00074 ~ReportControl(); 00075 bool SetControllingComponent(const Address & controller); 00076 inline Address GetControllingComponent() const { return mControllingComponent; } 00077 inline void SetAuthorityCode(const Byte code) { mAuthorityCode = code; } 00078 inline Byte GetAuthorityCode() const { return mAuthorityCode; } 00079 virtual bool IsCommand() const { return false; } 00080 virtual int WriteMessageBody(Packet& packet) const; 00081 virtual int ReadMessageBody(const Packet& packet); 00082 virtual Message* Clone() const { return new ReportControl(*this); } 00083 virtual UInt GetPresenceVector() const { return 0; } 00084 virtual UInt GetPresenceVectorSize() const { return 0; } 00085 virtual UInt GetPresenceVectorMask() const { return 0; } 00086 virtual UShort GetMessageCodeOfResponse() const { return 0; } 00087 virtual std::string GetMessageName() const { return "Report Control"; } 00088 virtual void ClearMessageBody(); 00089 virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return false; } 00090 virtual int RunTestCase() const; 00091 ReportControl& operator=(const ReportControl& message); 00092 protected: 00093 Address mControllingComponent; 00094 Byte mAuthorityCode; 00095 }; 00096 } 00097 00098 #endif 00099 /* End of File */