Back to index

openldap  2.4.31
LDAPModList.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 
00008 #ifndef LDAP_MOD_LIST_H
00009 #define LDAP_MOD_LIST_H
00010 
00011 #include <ldap.h>
00012 #include <list>
00013 #include <LDAPModification.h>
00014 
00018 class LDAPModList{
00019     typedef std::list<LDAPModification> ListType;
00020 
00021     public : 
00025         LDAPModList();
00026               
00030         LDAPModList(const LDAPModList&);
00031 
00036         void addModification(const LDAPModification &mod);
00037 
00042         LDAPMod** toLDAPModArray();
00043 
00047         bool empty() const;
00048         
00052         unsigned int size() const;
00053 
00054     private : 
00055         ListType m_modList;
00056 };
00057 #endif //LDAP_MOD_LIST_H
00058 
00059