libepp_nicbr
IpNetworkRenewCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: IpNetworkRenewCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __IPNETWORKRENEWCMD_H__
8 #define __IPNETWORKRENEWCMD_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 #include "RegistrationPeriod.H"
16 
17 using std::string;
18 
19 LIBEPP_NICBR_NS_BEGIN
20 
22 class IpNetworkRenewCmd : public Command
23 {
24 public:
26  IpNetworkRenewCmd(bool reset = true) : Command(false)
27  {
28  if (reset) {
29  this->reset();
30  }
31  }
32 
34 
37  void set_roid(const string &roid)
38  {
39  _roid = roid;
40  }
41 
43 
46  string get_roid() const
47  {
48  return _roid;
49  }
50 
52 
55  void set_expDate(const string &expDate)
56  {
57  _expDate = expDate;
58  }
59 
61 
64  string get_expDate() const
65  {
66  return _expDate;
67  }
68 
70 
74  void set_period(const int time, const string &unit)
75  {
76  _period.time = time;
77  _period.unit = unit;
78  }
79 
81 
85  {
86  return _period;
87  }
88 
89  void reset()
90  {
92  _roid = "";
93  _expDate = "";
94  _period.time = 0;
95  _period.unit = "";
96  }
97 
98 protected:
100  string _roid;
101 
103  string _expDate;
104 
107 };
108 
109 LIBEPP_NICBR_NS_END
110 #endif // __IPNETWORKRENEWCMD_H__
Definition: RegistrationPeriod.H:17
void set_period(const int time, const string &unit)
Sets period.
Definition: IpNetworkRenewCmd.H:74
EPP IpNetworkRenewCmd Class.
Definition: IpNetworkRenewCmd.H:22
RegistrationPeriod get_period() const
Returns period.
Definition: IpNetworkRenewCmd.H:84
Project defines.
IpNetworkRenewCmd(bool reset=true)
Default constructor.
Definition: IpNetworkRenewCmd.H:26
string _expDate
date on which the current validity period ends
Definition: IpNetworkRenewCmd.H:103
void set_expDate(const string &expDate)
Sets expiration date.
Definition: IpNetworkRenewCmd.H:55
EPP RegistrationPeriod struct.
RegistrationPeriod _period
registration period of the IP network object
Definition: IpNetworkRenewCmd.H:106
string get_expDate() const
Returns expiration date.
Definition: IpNetworkRenewCmd.H:64
void set_roid(const string &roid)
Sets repository object ID.
Definition: IpNetworkRenewCmd.H:37
void reset()
Reset object attributes.
Definition: Command.H:33
string get_roid() const
Returns repository object ID.
Definition: IpNetworkRenewCmd.H:46
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
string _roid
server-unique id for the created IP network
Definition: IpNetworkRenewCmd.H:100