libepp_nicbr
ClaimsNotice.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __CLAIMS_NOTICE_H__
8 #define __CLAIMS_NOTICE_H__
9 
10 LIBEPP_NICBR_NS_BEGIN
11 
14 {
15 public:
18  {
19  reset();
20  }
21 
24 
28  void set_id(const string &id) { _id = id; }
29 
32 
36  string get_id() const { return _id; }
37 
39 
42  void set_notAfter(const string &notAfter) { _notAfter = notAfter; }
43 
45 
48  string get_notAfter() const { return _notAfter; }
49 
51 
55  void set_acceptedDate(const string &acceptedDate) { _acceptedDate = acceptedDate; }
56 
58 
61  string get_acceptedDate() const { return _acceptedDate; }
62 
64 
67  bool is_empty() const
68  {
69  return _id.empty() && _notAfter.empty() && _acceptedDate.empty();
70  }
71 
73  void reset()
74  {
75  _id.clear();
76  _notAfter.clear();
77  _acceptedDate.clear();
78  }
79 
80 private:
83  string _id;
84 
86  string _notAfter;
87 
89  string _acceptedDate;
90 };
91 
92 LIBEPP_NICBR_NS_END
93 
94 #endif
bool is_empty() const
Returns if the Notice object is empty.
Definition: ClaimsNotice.H:67
void set_id(const string &id)
Definition: ClaimsNotice.H:28
void set_notAfter(const string &notAfter)
Sets the expiry of the claims notice.
Definition: ClaimsNotice.H:42
EPP Notice Class.
Definition: ClaimsNotice.H:13
string get_acceptedDate() const
Returns the date and time that the Claims Notice was accepted.
Definition: ClaimsNotice.H:61
ClaimsNotice()
Default constructor.
Definition: ClaimsNotice.H:17
string get_id() const
Definition: ClaimsNotice.H:36
void reset()
Reset object attributes.
Definition: ClaimsNotice.H:73
string get_notAfter() const
Returns the expiry of the claims notice.
Definition: ClaimsNotice.H:48
void set_acceptedDate(const string &acceptedDate)
Sets the date and time that the Claims Notice was accepted.
Definition: ClaimsNotice.H:55