2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_MOD_LIST_H
8 #define LDAP_MOD_LIST_H
12 #include <LDAPModification.h>
14 typedef std::list<LDAPModification> ModList;
17 * This container class is used to store multiple LDAPModification-objects.
23 * Constructs an empty list.
30 LDAPModList(const LDAPModList&);
33 * Adds one element to the end of the list.
34 * @param mod The LDAPModification to add to the std::list.
36 void addModification(const LDAPModification &mod);
39 * Translates the list to a 0-terminated array of
40 * LDAPMod-structures as needed by the C-API
42 LDAPMod** toLDAPModArray();
47 #endif //LDAP_MOD_LIST_H