libepp_nicbr
BrOrgCheckCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrOrgCheckCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_ORG_CHECK_CMD_H__
8 #define __BR_ORG_CHECK_CMD_H__
9 
10 #include <string>
11 #include <map>
12 
13 
14 #include "libepp_nicbr.H"
15 
16 #include "ContactCheckCmd.H"
17 
18 using std::string;
19 using std::map;
20 
21 LIBEPP_NICBR_NS_BEGIN
22 
25 {
26 public:
28  BrOrgCheckCmd(bool reset = true) : ContactCheckCmd(false)
29  {
30  if (reset) {
31  this->reset();
32  }
33  }
34 
36 
40  void insert_organization(const string &id, const string &organization)
41  {
42  _organization_list[id] = organization;
43  }
44 
46 
49  map< string, string, less<string> > get_organization_list() const
50  {
51  return _organization_list;
52  }
53 
55  void reset()
56  {
58  _organization_list.clear();
59  }
60 
61 protected:
63  map< string, string, less<string> > _organization_list;
64 
65 };
66 
67 LIBEPP_NICBR_NS_END
68 #endif //__BR_ORG_CHECK_CMD_H__
void reset()
reset attributes
Definition: ContactCheckCmd.H:47
Project defines.
void insert_organization(const string &id, const string &organization)
Inserts an Organization attribute.
Definition: BrOrgCheckCmd.H:40
void reset()
reset attributes
Definition: BrOrgCheckCmd.H:55
BrOrgCheckCmd(bool reset=true)
Default constructor.
Definition: BrOrgCheckCmd.H:28
EPP ContactCheckCmd Class.
Definition: ContactCheckCmd.H:23
EPP ContactCheckCmd Class.
map< string, string, less< string > > get_organization_list() const
Returns the Organization List.
Definition: BrOrgCheckCmd.H:49
EPP BrOrgCheckCmd Class.
Definition: BrOrgCheckCmd.H:24
map< string, string, less< string > > _organization_list
map with organization attribute
Definition: BrOrgCheckCmd.H:63