00001 /* ${copyright}$ */ 00002 /* $Id: ContactInfoRsp.H 547 2006-03-07 22:44:18Z cesar $ */ 00007 #ifndef __CONTACT_INFO_RSP_H__ 00008 #define __CONTACT_INFO_RSP_H__ 00009 00010 #include <string> 00011 #include <vector> 00012 #include <set> 00013 #include <memory> 00014 00015 #include "libepp_nicbr.H" 00016 00017 #include "Response.H" 00018 #include "CommonData.H" 00019 00020 using std::string; 00021 using std::vector; 00022 using std::set; 00023 using std::auto_ptr; 00024 00025 LIBEPP_NICBR_NS_BEGIN 00026 00028 class ContactInfoRsp : public Response 00029 { 00030 public: 00032 ContactInfoRsp(bool reset = true) : Response(false) 00033 { 00034 if (reset) { 00035 this->reset(); 00036 } 00037 } 00038 00040 00043 void set_roid(const string &roid) { _roid = roid; } 00044 00046 00049 void insert_status(const string &status) { _status_set.insert(status); } 00050 00052 00055 void set_clID(const string &clID) { _clID = clID; } 00056 00058 00061 void set_crID(const string &crID) { _crID = crID; } 00062 00064 00067 void set_crDate(const string &crDate) { _crDate = crDate; } 00068 00070 00073 void set_upID(const string &upID) { _upID = upID; } 00074 00076 00079 void set_upDate(const string &upDate) { _upDate = upDate; } 00080 00082 00085 void set_trDate(const string &trDate) { _trDate = trDate; } 00086 00088 00091 string get_roid() { return _roid; } 00092 00094 00097 set<string> get_status_set() { return _status_set; } 00098 00100 00103 string get_clID() { return _clID; } 00104 00106 00109 string get_crID() { return _crID; } 00110 00112 00115 string get_crDate() { return _crDate; } 00116 00118 00121 string get_upID() { return _upID; } 00122 00124 00127 string get_upDate() { return _upDate; } 00128 00130 00133 string get_trDate() { return _trDate; } 00134 00136 00139 void set_common_data(const CommonData &common) 00140 { 00141 _common = common; 00142 } 00143 00145 00148 CommonData get_common_data() { return _common; } 00149 00151 00154 void set_authInfo(const AuthInfo &authInfo) 00155 { 00156 _authInfo = authInfo; 00157 } 00158 00160 00163 AuthInfo get_authInfo() { return _authInfo; } 00164 00166 void reset() { 00167 Response::reset(); 00168 _roid = ""; 00169 _status_set.clear(); 00170 _clID = ""; 00171 _crID = ""; 00172 _crDate = ""; 00173 _upID = ""; 00174 _upDate = ""; 00175 _trDate = ""; 00176 _common.reset(); 00177 _authInfo.reset(); 00178 } 00179 00180 protected: 00182 string _roid; 00183 00185 set<string> _status_set; 00186 00188 string _clID; 00189 00191 string _crID; 00192 00194 string _crDate; 00195 00197 string _upID; 00198 00200 string _upDate; 00201 00203 string _trDate; 00204 00206 CommonData _common; 00207 00209 AuthInfo _authInfo; 00210 }; 00211 00212 LIBEPP_NICBR_NS_END 00213 #endif //__CONTACT_INFO_RSP_H__