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>
15 * This container class is used to store multiple LDAPModification-objects.
18 typedef std::list<LDAPModification> ListType;
22 * Constructs an empty list.
29 LDAPModList(const LDAPModList&);
32 * Adds one element to the end of the list.
33 * @param mod The LDAPModification to add to the std::list.
35 void addModification(const LDAPModification &mod);
38 * Translates the list to a 0-terminated array of
39 * LDAPMod-structures as needed by the C-API
41 LDAPMod** toLDAPModArray();
46 #endif //LDAP_MOD_LIST_H