00001 /* ${copyright}$ */ 00002 /* $Id: ContactCheckCmd.H 536 2006-03-03 15:00:29Z cesar $ */ 00007 #ifndef __CONTACT_CHECK_CMD_H__ 00008 #define __CONTACT_CHECK_CMD_H__ 00009 00010 #include <string> 00011 #include <set> 00012 00013 #include "libepp_nicbr.H" 00014 00015 #include "Command.H" 00016 00017 using std::string; 00018 using std::set; 00019 00020 LIBEPP_NICBR_NS_BEGIN 00021 00023 class ContactCheckCmd : public Command 00024 { 00025 public: 00027 ContactCheckCmd(bool reset = true) : Command(false) 00028 { 00029 if (reset) { 00030 this->reset(); 00031 } 00032 } 00033 00035 00038 void insert_id(const string &id) { _id_list.insert(id); } 00039 00041 00044 set<string> get_id_list() { return _id_list; } 00045 00047 void reset() 00048 { 00049 Command::reset(); 00050 _id_list.clear(); 00051 } 00052 00053 protected: 00055 set<string> _id_list; 00056 }; 00057 00058 LIBEPP_NICBR_NS_END 00059 #endif //__CONTACT_CHECK_CMD_H__