libepp_nicbr
DefRegDeleteCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __DEF_REG_DELETE_CMD_H__
8 #define __DEF_REG_DELETE_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 DefRegDeleteCmd : public Command
23 {
24 public:
26  DefRegDeleteCmd(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  void reset()
47  {
49  _roid.clear();
50  }
51 
52 protected:
54  string _roid;
55 };
56 
57 LIBEPP_NICBR_NS_END
58 
59 #endif // __DEF_REG_DELETE_CMD_H__
void reset()
Reset object attributes.
Definition: DefRegDeleteCmd.H:46
Project defines.
EPP CommonData Class.
EPP DefRegDeleteCmd Class.
Definition: DefRegDeleteCmd.H:22
string _roid
Defensive registration roid.
Definition: DefRegDeleteCmd.H:54
DefRegDeleteCmd(bool reset=true)
Default constructor.
Definition: DefRegDeleteCmd.H:26
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
void set_roid(const string &roid)
Set defensive registration roid.
Definition: DefRegDeleteCmd.H:37
string get_roid() const
Returns defensive registration roid.
Definition: DefRegDeleteCmd.H:43