1
// $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPModList.h,v 1.7.6.2 2008/04/14 23:29:26 quanah Exp $
3
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
4
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8
#ifndef LDAP_MOD_LIST_H
9
#define LDAP_MOD_LIST_H
13
#include <LDAPModification.h>
16
* This container class is used to store multiple LDAPModification-objects.
19
typedef std::list<LDAPModification> ListType;
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();
45
* @returns true, if the ModList contains no Operations
50
* @returns number of Modifications in the ModList
52
unsigned int size() const;
57
#endif //LDAP_MOD_LIST_H