+// $OpenLDAP$
/*
- * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
* @param attrs The attributes for the new entry.
*/
LDAPEntry(const std::string& dn=std::string(),
- const LDAPAttributeList *attrs=new LDAPAttributeList());
+ const LDAPAttributeList *attrs=0);
/**
* Used internally only.
* Destructor
*/
~LDAPEntry();
-
+
+ /**
+ * Assignment operator
+ */
+ LDAPEntry& operator=(const LDAPEntry& from);
+
/**
* Sets the DN-attribute.
* @param dn: The new DN for the entry.
* @param attr The attribute to add to the list.
*/
void addAttribute(const LDAPAttribute& attr);
+
+ /**
+ * Deletes all values of an Attribute from the list of Attributes
+ * (simple wrapper around LDAPAttributeList::delAttribute() ).
+ * @param type The attribute to delete.
+ */
+ void delAttribute(const std::string& type);
/**
* Replace an Attribute in the List of Attributes (simple wrapper