libepp_nicbr
DefRegInfoRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __DEF_REG_INFO_RSP_H__
8 #define __DEF_REG_INFO_RSP_H__
9 
10 #include <list>
11 #include <string>
12 
13 #include "libepp_nicbr.H"
14 
15 #include "Response.H"
16 #include "CommonData.H"
17 
18 using std::list;
19 using std::string;
20 
21 LIBEPP_NICBR_NS_BEGIN
22 
24 class DefRegInfoRsp : public Response
25 {
26 public:
28  DefRegInfoRsp(bool reset = true) : Response(false)
29  {
30  if (reset) {
31  this->reset();
32  }
33  }
34 
36 
39  void set_roid(const string& roid) { _roid = roid; }
40 
42 
45  string get_roid() const { return _roid; }
46 
48 
51  void set_name(const DefRegName &name) { _name = name; }
52 
54 
57  DefRegName get_name() const { return _name; }
58 
60 
63  void set_registrant(const string& registrant) { _registrant = registrant; }
64 
66 
69  string get_registrant() const { return _registrant; }
70 
73 
76  void set_trademark_id(const string &id) { _trademark_id = id; }
77 
80 
83  string get_trademark_id() const { return _trademark_id; }
84 
87 
90  void set_trademark_country(const string &country) { _trademark_country = country; }
91 
94 
97  string get_trademark_country() const { return _trademark_country; }
98 
100 
103  void set_trademark_date(const string &date) { _trademark_date = date; }
104 
106 
109  string get_trademark_date() const { return _trademark_date; }
110 
113 
116  void set_admin_contact(const string &contact) { _admin_contact = contact; }
117 
120 
123  string get_admin_contact() const { return _admin_contact; }
124 
126 
129  void insert_status(const string& status) { _status_set.insert(status); }
130 
132 
135  set<string> get_status_set() const { return _status_set; }
136 
138 
141  void set_clID(const string& clID)
142  {
143  _clID = clID;
144  }
145 
147 
150  string get_clID() const { return _clID; }
151 
153 
156  void set_crID(const string& crID) { _crID = crID; }
157 
159 
162  string get_crID() const { return _crID; }
163 
165 
168  void set_crDate(const string& crDate) { _crDate = crDate; }
169 
171 
174  string get_crDate() const { return _crDate; }
175 
177 
180  void set_upID(const string& upID) { _upID = upID; }
181 
183 
186  string get_upID() const { return _upID; }
187 
189 
192  void set_upDate(const string& upDate) { _upDate = upDate; }
193 
195 
198  string get_upDate() const { return _upDate; }
199 
201 
204  void set_exDate(const string& exDate) { _exDate = exDate; }
205 
207 
210  string get_exDate() const { return _exDate; }
211 
213 
216  void set_trDate(const string& trDate) { _trDate = trDate; }
217 
219 
222  string get_trDate() const { return _trDate; }
223 
225 
228  void set_authInfo(const AuthInfo &authInfo)
229  {
230  _authInfo = authInfo;
231  }
232 
234 
237  AuthInfo get_authInfo() const { return _authInfo; }
238 
240  void reset()
241  {
242  Response::reset();
243  _name.reset();
244  _roid = "";
245  _status_set.clear();
246  _registrant = "";
247  _trademark_id = "";
248  _trademark_country = "";
249  _trademark_date = "";
250  _admin_contact = "";
251  _clID = "";
252  _crID = "";
253  _crDate = "";
254  _upID = "";
255  _upDate = "";
256  _exDate = "";
257  _upDate = "";
258  _trDate = "";
259  _authInfo.reset();
260  }
261 
262 protected:
265  string _roid;
266 
269 
273  string _registrant;
274 
278 
282 
285 
289 
292  set<string> _status_set;
293 
295  string _clID;
296 
298  string _crID;
299 
301  string _crDate;
302 
304  string _upID;
305 
307  string _upDate;
308 
310  string _exDate;
311 
313  string _trDate;
314 
317 };
318 
319 LIBEPP_NICBR_NS_END
320 
321 #endif // __DEF_REG_INFO_RSP_H__
void set_name(const DefRegName &name)
Sets name of the Defensive Registration object.
Definition: DefRegInfoRsp.H:51
DefRegName get_name() const
Returns name of the Defensive Registration object.
Definition: DefRegInfoRsp.H:57
set< string > get_status_set() const
Returns set of status.
Definition: DefRegInfoRsp.H:135
set< string > _status_set
Definition: DefRegInfoRsp.H:292
EPP Response Class.
Definition: Response.H:24
string _upDate
last modification date
Definition: DefRegInfoRsp.H:307
void set_trDate(const string &trDate)
Sets last successfull transfer date.
Definition: DefRegInfoRsp.H:216
DefRegName _name
Name of the Defensive Registration object.
Definition: DefRegInfoRsp.H:268
string _trademark_date
Date when the Trademark was issued.
Definition: DefRegInfoRsp.H:284
string get_registrant() const
Returns registrant.
Definition: DefRegInfoRsp.H:69
void set_crDate(const string &crDate)
Sets creation date.
Definition: DefRegInfoRsp.H:168
Project defines.
EPP CommonData Class.
string _exDate
expiration date
Definition: DefRegInfoRsp.H:310
EPP defensive registration Name Class.
Definition: CommonData.H:797
void set_roid(const string &roid)
Sets repository object identification.
Definition: DefRegInfoRsp.H:39
void set_trademark_country(const string &country)
Definition: DefRegInfoRsp.H:90
void set_trademark_date(const string &date)
Sets date when the Trademark was issued.
Definition: DefRegInfoRsp.H:103
void set_upID(const string &upID)
Sets the identifier of the client that last updated the object.
Definition: DefRegInfoRsp.H:180
string _trDate
last successfull transfer date
Definition: DefRegInfoRsp.H:313
string _registrant
Definition: DefRegInfoRsp.H:273
EPP Response Class.
string get_trademark_id() const
Definition: DefRegInfoRsp.H:83
string _trademark_country
Definition: DefRegInfoRsp.H:281
string _upID
client that last updated object
Definition: DefRegInfoRsp.H:304
string get_upID() const
Returns the identifier of the client that last updated the object.
Definition: DefRegInfoRsp.H:186
string _crID
client that created object
Definition: DefRegInfoRsp.H:298
string get_crID() const
Returns the name of the Defensive Registration object.
Definition: DefRegInfoRsp.H:162
AuthInfo get_authInfo() const
Returns authorization information.
Definition: DefRegInfoRsp.H:237
string get_trademark_country() const
Definition: DefRegInfoRsp.H:97
string get_upDate() const
Returns last modification date.
Definition: DefRegInfoRsp.H:198
string get_exDate() const
Returns expiration date.
Definition: DefRegInfoRsp.H:210
string get_trDate() const
Returns last successfull transfer date.
Definition: DefRegInfoRsp.H:222
void set_trademark_id(const string &id)
Definition: DefRegInfoRsp.H:76
string get_trademark_date() const
Returns the date when the Trademark was issued.
Definition: DefRegInfoRsp.H:109
string get_crDate() const
Returns creation date.
Definition: DefRegInfoRsp.H:174
string _admin_contact
Definition: DefRegInfoRsp.H:288
void reset()
Reset all object attributes.
Definition: CommonData.H:152
void set_registrant(const string &registrant)
Sets registrant.
Definition: DefRegInfoRsp.H:63
void set_authInfo(const AuthInfo &authInfo)
Sets authorization information.
Definition: DefRegInfoRsp.H:228
string _clID
sponsoring client id
Definition: DefRegInfoRsp.H:295
string get_admin_contact() const
Definition: DefRegInfoRsp.H:123
string _roid
Definition: DefRegInfoRsp.H:265
DefRegInfoRsp(bool reset=true)
Default constructor.
Definition: DefRegInfoRsp.H:28
string get_clID() const
Returns sponsoring client.
Definition: DefRegInfoRsp.H:150
void reset()
Resets object attributes.
Definition: DefRegInfoRsp.H:240
void set_crID(const string &crID)
Sets the identifier of the client that created the object.
Definition: DefRegInfoRsp.H:156
void set_admin_contact(const string &contact)
Definition: DefRegInfoRsp.H:116
void insert_status(const string &status)
Inserts a new status.
Definition: DefRegInfoRsp.H:129
void reset()
Resets object attributes.
Definition: CommonData.H:867
AuthInfo _authInfo
authorization information
Definition: DefRegInfoRsp.H:316
string _crDate
creation date
Definition: DefRegInfoRsp.H:301
void reset()
reset attributes
Definition: Response.H:161
string _trademark_id
Definition: DefRegInfoRsp.H:277
void set_clID(const string &clID)
Sets the sponsoring client.
Definition: DefRegInfoRsp.H:141
EPP DefRegInfoRsp Class.
Definition: DefRegInfoRsp.H:24
void set_upDate(const string &upDate)
Sets last modification date.
Definition: DefRegInfoRsp.H:192
AuthInfo Class.
Definition: CommonData.H:83
void set_exDate(const string &exDate)
Sets expiration date.
Definition: DefRegInfoRsp.H:204
string get_roid() const
Returns repository object identification.
Definition: DefRegInfoRsp.H:45