ldapsdk  0.0.1
LDAPModList.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 
8 #ifndef LDAP_MOD_LIST_H
9 #define LDAP_MOD_LIST_H
10 
11 #include <ldap.h>
12 #include <list>
13 #include <LDAPModification.h>
14 
19  typedef std::list<LDAPModification> ListType;
20 
21  public :
25  LDAPModList();
26 
30  LDAPModList(const LDAPModList&);
31 
36  void addModification(const LDAPModification &mod);
37 
42  LDAPMod** toLDAPModArray();
43 
47  bool empty() const;
48 
52  unsigned int size() const;
53 
54  private :
55  ListType m_modList;
56 };
57 #endif //LDAP_MOD_LIST_H
58 
59