00001 /* ${copyright}$ */ 00002 /* $Id: PollCmd.H 536 2006-03-03 15:00:29Z cesar $ */ 00007 #ifndef __POLL_CMD_H__ 00008 #define __POLL_CMD_H__ 00009 00010 #include <string> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "Command.H" 00015 00016 using std::string; 00017 00018 LIBEPP_NICBR_NS_BEGIN 00019 00021 class PollCmd : public Command 00022 { 00023 public: 00025 PollCmd(bool reset = true) : Command(false) 00026 { 00027 if (reset) { 00028 this->reset(); 00029 } 00030 } 00031 00033 00036 void set_op(const string &op) { _op = op; } 00037 00039 00042 void set_msgID(const string &msgID) { _msgID = msgID; } 00043 00045 00048 string get_op() { return _op; } 00049 00051 00054 string get_msgID() { return _msgID; } 00055 00057 void reset() { 00058 Command::reset(); 00059 _op = ""; 00060 _msgID = ""; 00061 } 00062 00063 protected: 00065 string _op; 00066 00068 string _msgID; 00069 00070 }; 00071 00072 LIBEPP_NICBR_NS_END 00073 #endif //__POLL_CMD_H__