#include <ldap.h>
#include <list>
-#include "LDAPModification.h"
+#include <LDAPModification.h>
-typedef list<LDAPModification> ModList;
+typedef std::list<LDAPModification> ModList;
+/**
+ * This container class is used to store multiple LDAPModification-objects.
+ */
class LDAPModList{
public :
+ /**
+ * Constructs an empty std::list.
+ */
LDAPModList();
- LDAPModList(const LDAPModList&);
-
+
+ /**
+ * Copy-constructor
+ */
+ LDAPModList(const LDAPModList&);
+
+ /**
+ * Adds one element to the end of the std::list.
+ * @param mod The LDAPModification to add to the std::list.
+ */
void addModification(const LDAPModification &mod);
- LDAPMod** toLDAPModArray();
+
+ /**
+ * Translates the std::list to a 0-terminated array of
+ * LDAPMod-structures as needed by the C-API
+ */
+ LDAPMod** toLDAPModArray();
private :
ModList m_modList;