libepp_nicbr
LaunchCheckRsp.H
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __LAUNCH_CHECK_RSP_H__
8 #define __LAUNCH_CHECK_RSP_H__
9 
10 #include <list>
11 #include <string>
12 
13 #include "Launch.H"
14 
15 using std::list;
16 using std::string;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
22 {
23 public:
25  class Name {
26  public:
28  Name()
29  {
30  reset();
31  }
32 
34 
37  void set_fqdn(const string &fqdn) { _fqdn = fqdn; }
38 
40 
43  string get_fqdn() const { return _fqdn; }
44 
46 
49  void set_exists(const bool exists) { _exists = exists; }
50 
52 
55  bool exists() const { return _exists; }
56 
58  void reset()
59  {
60  _fqdn.clear();
61  _exists = false;
62  }
63 
64  private:
66  string _fqdn;
67 
69  bool _exists;
70  };
71 
73  class Result
74  {
75  public:
78  {
79  reset();
80  }
81 
84 
88  void set_name(const Name &name) { _name = name; }
89 
92 
96  Name get_name() const { return _name; }
97 
102 
105  void set_claimKey(const string &claimKey) { _claimKey = claimKey; }
106 
111 
114  string get_claimKey() const { return _claimKey; }
115 
117  void reset()
118  {
119  _name.reset();
120  _claimKey.clear();
121  }
122 
123  private:
126  Name _name;
127 
132  string _claimKey;
133  };
134 
137  {
138  reset();
139  }
140 
142 
145  void set_phase(const LaunchPhase &phase) { _phase = phase; }
146 
148 
151  LaunchPhase get_phase() const { return _phase; }
152 
154 
157  void set_results(const list<Result> &results) { _results = results; }
158 
160 
163  list<Result> get_results() const { return _results; }
164 
166 
169  void add_result(const Result &result)
170  {
171  _results.push_back(result);
172  }
173 
175  void reset()
176  {
177  _phase.reset();
178  _results.clear();
179  }
180 
181 private:
183  LaunchPhase _phase;
184 
186  list<Result> _results;
187 };
188 
189 LIBEPP_NICBR_NS_END
190 
191 #endif // __LAUNCH_CHECK_RSP_H__
bool exists() const
Returns the existence of a trademark.
Definition: LaunchCheckRsp.H:55
void set_results(const list< Result > &results)
Sets the list of results.
Definition: LaunchCheckRsp.H:157
LaunchPhase get_phase() const
Returns the phase of the launch.
Definition: LaunchCheckRsp.H:151
EPP Launch Phase Class.
Definition: Launch.H:121
void reset()
Reset object attributes.
Definition: LaunchCheckRsp.H:58
void reset()
Reset object attributes.
Definition: LaunchCheckRsp.H:175
string get_fqdn() const
Returns the fully qualified name of the queried domain name.
Definition: LaunchCheckRsp.H:43
EPP LaunchCheckRsp::Name Class.
Definition: LaunchCheckRsp.H:25
void reset()
Reset object attributes.
Definition: Launch.H:236
void add_result(const Result &result)
Add a launch result.
Definition: LaunchCheckRsp.H:169
LaunchCheckRsp()
Default constructor.
Definition: LaunchCheckRsp.H:136
void set_exists(const bool exists)
Sets the existence of a trademark.
Definition: LaunchCheckRsp.H:49
Name get_name() const
Definition: LaunchCheckRsp.H:96
Result()
Default constructor.
Definition: LaunchCheckRsp.H:77
void set_name(const Name &name)
Definition: LaunchCheckRsp.H:88
void set_claimKey(const string &claimKey)
Definition: LaunchCheckRsp.H:105
EPP LaunchCheckRsp::Result Class.
Definition: LaunchCheckRsp.H:73
Name()
Default constructor.
Definition: LaunchCheckRsp.H:28
void reset()
Reset object attributes.
Definition: LaunchCheckRsp.H:117
EPP LaunchCheckRsp Class.
Definition: LaunchCheckRsp.H:21
string get_claimKey() const
Definition: LaunchCheckRsp.H:114
EPP Launch Phase.
void set_phase(const LaunchPhase &phase)
Sets the phase of the launch.
Definition: LaunchCheckRsp.H:145
list< Result > get_results() const
Returns the list of results.
Definition: LaunchCheckRsp.H:163
void set_fqdn(const string &fqdn)
Sets the fully qualified name of the queried domain name.
Definition: LaunchCheckRsp.H:37