ldapsdk  0.0.1
LDAPModList.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2013 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 
LDAPMod ** toLDAPModArray()
Translates the list to a 0-terminated array of LDAPMod-structures as needed by the C-API...
Definition: LDAPModList.cpp:29
This container class is used to store multiple LDAPModification-objects.
Definition: LDAPModList.h:18
void addModification(const LDAPModification &mod)
Adds one element to the end of the list.
Definition: LDAPModList.cpp:24
LDAPModList()
Constructs an empty list.
Definition: LDAPModList.cpp:15
unsigned int size() const
Definition: LDAPModList.cpp:46
bool empty() const
Definition: LDAPModList.cpp:42
Definition: LDAPModification.h:14