libepp_nicbr
DefRegInfoCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __DEF_REG_INFO_CMD_H__
8 #define __DEF_REG_INFO_CMD_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 #include "CommonData.H"
16 
17 using std::string;
18 
19 LIBEPP_NICBR_NS_BEGIN
20 
22 class DefRegInfoCmd : public Command
23 {
24 public:
26  DefRegInfoCmd(bool reset = true) : Command(false)
27  {
28  if (reset) {
29  this->reset();
30  }
31  }
32 
34 
37  void set_roid(const string &roid) { _roid = roid; }
38 
40 
43  string get_roid() const { return _roid; }
44 
46 
49  void set_authInfo(const AuthInfo &authInfo)
50  {
51  _authInfo = authInfo;
52  }
53 
55 
58  AuthInfo get_authInfo() const { return _authInfo; }
59 
61  void reset()
62  {
64  _roid.clear();
65  _authInfo.reset();
66  }
67 
68 protected:
70  string _roid;
71 
74 };
75 
76 LIBEPP_NICBR_NS_END
77 
78 #endif // __DEF_REG_INFO_CMD_H__
void set_authInfo(const AuthInfo &authInfo)
Sets authorization information.
Definition: DefRegInfoCmd.H:49
EPP DefRegInfoCmd Class.
Definition: DefRegInfoCmd.H:22
Project defines.
EPP CommonData Class.
string _roid
Defensive registration roid.
Definition: DefRegInfoCmd.H:70
string get_roid() const
Returns defensive registration roid.
Definition: DefRegInfoCmd.H:43
void reset()
Reset object attributes.
Definition: DefRegInfoCmd.H:61
DefRegInfoCmd(bool reset=true)
Default constructor.
Definition: DefRegInfoCmd.H:26
AuthInfo _authInfo
Authorization information.
Definition: DefRegInfoCmd.H:73
void reset()
Reset all object attributes.
Definition: CommonData.H:152
AuthInfo get_authInfo() const
Returns authorization information.
Definition: DefRegInfoCmd.H:58
void reset()
Reset object attributes.
Definition: Command.H:33
void set_roid(const string &roid)
Set defensive registration roid.
Definition: DefRegInfoCmd.H:37
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
AuthInfo Class.
Definition: CommonData.H:83