libepp_nicbr
PollCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: PollCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __POLL_CMD_H__
8 #define __POLL_CMD_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 
16 using std::string;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
21 class PollCmd : public Command
22 {
23 public:
25  PollCmd(bool reset = true) : Command(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_op(const string &op) { _op = op; }
37 
39 
42  void set_msgID(const string &msgID) { _msgID = msgID; }
43 
45 
48  string get_op() const { return _op; }
49 
51 
54  string get_msgID() const { return _msgID; }
55 
57  void reset() {
59  _op = "";
60  _msgID = "";
61  }
62 
63 protected:
65  string _op;
66 
68  string _msgID;
69 
70 };
71 
72 LIBEPP_NICBR_NS_END
73 #endif //__POLL_CMD_H__
EPP PollCmd Class.
Definition: PollCmd.H:21
string get_msgID() const
Returns the msgID of the message.
Definition: PollCmd.H:54
Project defines.
string _msgID
Message id.
Definition: PollCmd.H:68
string get_op() const
Returns the operation of the poll command.
Definition: PollCmd.H:48
void set_op(const string &op)
Sets the operation of the poll command ("req" or "ack")
Definition: PollCmd.H:36
void set_msgID(const string &msgID)
Sets the msgID of the message being acknowledged.
Definition: PollCmd.H:42
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
void reset()
reset attributes
Definition: PollCmd.H:57
PollCmd(bool reset=true)
Default constructor.
Definition: PollCmd.H:25
string _op
Operation.
Definition: PollCmd.H:65