00001 /* ${copyright}$ */ 00002 /* $Id: BrOrgCheckCmd.H 536 2006-03-03 15:00:29Z cesar $ */ 00007 #ifndef __BR_ORG_CHECK_CMD_H__ 00008 #define __BR_ORG_CHECK_CMD_H__ 00009 00010 #include <string> 00011 #include <map> 00012 00013 00014 #include "libepp_nicbr.H" 00015 00016 #include "ContactCheckCmd.H" 00017 00018 using std::string; 00019 using std::map; 00020 00021 LIBEPP_NICBR_NS_BEGIN 00022 00024 class BrOrgCheckCmd : public ContactCheckCmd 00025 { 00026 public: 00028 BrOrgCheckCmd(bool reset = true) : ContactCheckCmd(false) 00029 { 00030 if (reset) { 00031 this->reset(); 00032 } 00033 } 00034 00036 00040 void insert_organization(const string &id, const string &organization) 00041 { 00042 _organization_list[id] = organization; 00043 } 00044 00046 00049 map< string, string, less<string> > get_organization_list() 00050 { 00051 return _organization_list; 00052 } 00053 00055 void reset() 00056 { 00057 ContactCheckCmd::reset(); 00058 _organization_list.clear(); 00059 } 00060 00061 protected: 00063 map< string, string, less<string> > _organization_list; 00064 00065 }; 00066 00067 LIBEPP_NICBR_NS_END 00068 #endif //__BR_ORG_CHECK_CMD_H__