include/DomainCheckCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: DomainCheckCmd.H 536 2006-03-03 15:00:29Z cesar $ */
00007 #ifndef __DOMAIN_CHECK_CMD_H__
00008 #define __DOMAIN_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 DomainCheckCmd : public Command
00024 {
00025 public:
00027   DomainCheckCmd(bool reset = true) : Command(false)
00028   {
00029     if (reset) {
00030       this->reset();
00031     }
00032   }
00033 
00035 
00038   void insert_domain(const string &domain) { _domains_list.insert(domain); } 
00039   
00041 
00044   set<string> get_domains_list() { return _domains_list; }
00045   
00047   void reset()
00048   {
00049     Command::reset();
00050     _domains_list.clear();
00051   }
00052 
00053 protected:
00055   set<string> _domains_list;
00056 };
00057 
00058 LIBEPP_NICBR_NS_END
00059 #endif //__DOMAIN_CHECK_CMD_H__

Generated on Thu Jun 8 17:40:00 2006 for libepp_nicbr by  doxygen 1.4.6