include/BrOrgUpdateCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrOrgUpdateCmd.H 1001 2009-01-23 09:39:13Z rafael $ */
00007 #ifndef __BR_ORG_UPDATE_CMD_H__
00008 #define __BR_ORG_UPDATE_CMD_H__
00009 
00010 #include <string>
00011 #include <map>
00012 
00013 
00014 #include "libepp_nicbr.H"
00015 
00016 #include "ContactUpdateCmd.H"
00017 
00018 using std::string;
00019 using std::map;
00020 
00021 LIBEPP_NICBR_NS_BEGIN
00022 
00024 class BrOrgUpdateCmd : public ContactUpdateCmd
00025 {
00026 public:
00028   BrOrgUpdateCmd(bool reset = true) : ContactUpdateCmd(false)
00029   {
00030     if (reset) {
00031       this->reset();
00032     }
00033   }
00034 
00036 
00039   void set_organization(const string &organization)
00040   {
00041     _organization = organization;
00042   }
00043 
00045 
00048   string get_organization()
00049   {
00050     return _organization;
00051   }
00052 
00054 
00057   void set_responsible(const string &responsible) 
00058   {
00059     _responsible = responsible;
00060     _responsible_f = true;
00061   }
00062 
00064 
00067   string get_responsible() { return _responsible; };
00068 
00070 
00073   void set_responsible_f(bool responsible_f) 
00074   {
00075     _responsible_f = responsible_f;
00076   };
00077   
00079 
00082   bool get_responsible_f() 
00083   {
00084     return _responsible_f;
00085   };
00086 
00088 
00091   void set_exDate(string exDate) { _exDate = exDate; }
00092 
00094 
00097   string get_exDate() { return _exDate; }
00098 
00100 
00104   void insert_contact_add(const string &type, const string &id)
00105   {
00106     _contact_list_add[type] = id;
00107   }
00108 
00110 
00113   map< string, string, less<string> > get_contact_list_add()
00114   {
00115     return _contact_list_add;
00116   }
00117 
00119 
00123   void insert_contact_rem(const string &type, const string &id)
00124   {
00125     _contact_list_rem[type] = id;
00126   }
00127 
00129 
00132   map< string, string, less<string> > get_contact_list_rem()
00133   {
00134     return _contact_list_rem;
00135   }
00136 
00138   void reset()
00139   {
00140     ContactUpdateCmd::reset();
00141     _organization = "";
00142     _contact_list_add.clear();
00143     _contact_list_rem.clear();
00144     _responsible = "";
00145     _responsible_f = false;
00146     _exDate = "";
00147   }
00148   
00149 protected:
00151   string _organization;
00152 
00154   string _responsible;
00155 
00157   bool _responsible_f;
00158 
00161   string _exDate;
00162 
00164   map<string, string, less<string> > _contact_list_add;
00165 
00167   map<string, string, less<string> > _contact_list_rem;
00168 };
00169 
00170 LIBEPP_NICBR_NS_END
00171 #endif //__BR_ORG_UPDATE_CMD_H__

Generated on Tue Mar 17 16:03:07 2009 for libepp_nicbr by  doxygen 1.4.7