include/BrOrgCreateCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrOrgCreateCmd.H 536 2006-03-03 15:00:29Z cesar $ */
00007 #ifndef __BR_ORG_CREATE_CMD_H__
00008 #define __BR_ORG_CREATE_CMD_H__
00009 
00010 #include <string>
00011 #include <map>
00012 
00013 
00014 #include "libepp_nicbr.H"
00015 
00016 #include "ContactCreateCmd.H"
00017 
00018 using std::string;
00019 using std::map;
00020 using std::less;
00021 
00022 LIBEPP_NICBR_NS_BEGIN
00023 
00025 class BrOrgCreateCmd : public ContactCreateCmd
00026 {
00027 public:
00029   BrOrgCreateCmd(bool reset = true) : ContactCreateCmd(false)
00030   {
00031     if (reset) {
00032       this->reset();
00033     }
00034   }
00035 
00037 
00040   void set_organization(const string &organization)
00041   {
00042     _organization = organization;
00043   }
00044 
00046 
00049   string get_organization()
00050   {
00051     return _organization;
00052   }
00053 
00055 
00059   void insert_contact(const string &type, const string &id)
00060   {
00061     _contact_list[type] = id;
00062   }
00063 
00065 
00068   map< string, string, less<string> > get_contact_list() 
00069   {
00070     return _contact_list;
00071   }
00072 
00074   void reset()
00075   {
00076     ContactCreateCmd::reset();
00077     _organization = "";
00078     _contact_list.clear();
00079   }
00080   
00081 protected:
00083   string _organization;
00084 
00086   map<string, string, less<string> > _contact_list;
00087 };
00088 
00089 LIBEPP_NICBR_NS_END
00090 #endif //__BR_ORG_CREATE_CMD_H__

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