]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPEntry.cpp
added support for deleting attribute type from the list of attributes
[openldap] / contrib / ldapc++ / src / LDAPEntry.cpp
index 1052cb5e1b538be9843e808aa574dc3b52b6a29a..bdf7fa8f2e1715053909fd1660a23b6c583be0f8 100644 (file)
@@ -1,3 +1,4 @@
+// $OpenLDAP$
 /*
  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -87,6 +88,11 @@ void LDAPEntry::addAttribute(const LDAPAttribute& attr)
     m_attrs->addAttribute(attr);
 }
 
+void LDAPEntry::delAttribute(const std::string& type)
+{
+    m_attrs->delAttribute(type);
+}
+
 void LDAPEntry::replaceAttribute(const LDAPAttribute& attr)
 {
     m_attrs->replaceAttribute(attr);