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 #include "jaus/core/control/queryauthority.h" 00041 00042 using namespace JAUS; 00043 00052 QueryAuthority::QueryAuthority(const Address& dest, const Address& src) : Message(QUERY_AUTHORITY, dest, src) 00053 { 00054 } 00055 00056 00062 QueryAuthority::QueryAuthority(const QueryAuthority& message) : Message(QUERY_AUTHORITY) 00063 { 00064 *this = message; 00065 } 00066 00067 00073 QueryAuthority::~QueryAuthority() 00074 { 00075 } 00076 00077 00089 int QueryAuthority::WriteMessageBody(Packet& packet) const 00090 { 00091 return 0; 00092 } 00093 00094 00106 int QueryAuthority::ReadMessageBody(const Packet& packet) 00107 { 00108 return 0; 00109 } 00110 00111 00117 void QueryAuthority::ClearMessageBody() 00118 { 00119 } 00120 00121 00129 int QueryAuthority::RunTestCase() const 00130 { 00131 int result = 0; 00132 00133 Packet packet; 00134 QueryAuthority msg1, msg2; 00135 00136 if( msg1.WriteMessageBody(packet) != -1 && 00137 msg2.ReadMessageBody(packet) != -1) 00138 { 00139 result = 1; 00140 } 00141 00142 return result; 00143 } 00144 00145 00151 QueryAuthority& QueryAuthority::operator=(const QueryAuthority& message) 00152 { 00153 if(this != &message) 00154 { 00155 CopyHeaderData(&message); 00156 } 00157 return *this; 00158 } 00159 00160 00161 /* End of File */