From: Ralf Haferkamp Date: Wed, 15 Jun 2011 13:28:55 +0000 (+0200) Subject: Additional getter methods for LDAPModification X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e4faaf1bde22c88ec7382b74bf0ae1cac88f860;p=openldap Additional getter methods for LDAPModification --- diff --git a/contrib/ldapc++/src/LDAPModification.cpp b/contrib/ldapc++/src/LDAPModification.cpp index 7445e12b2e..f33da88364 100644 --- a/contrib/ldapc++/src/LDAPModification.cpp +++ b/contrib/ldapc++/src/LDAPModification.cpp @@ -38,3 +38,11 @@ LDAPMod* LDAPModification::toLDAPMod() const { } return ret; } + +const LDAPAttribute* LDAPModification::getAttribute() const { + return &m_attr; +} + +LDAPModification::mod_op LDAPModification::getOperation() const { + return m_mod_op; +} diff --git a/contrib/ldapc++/src/LDAPModification.h b/contrib/ldapc++/src/LDAPModification.h index 94cacb2a11..53edc5b52a 100644 --- a/contrib/ldapc++/src/LDAPModification.h +++ b/contrib/ldapc++/src/LDAPModification.h @@ -18,6 +18,9 @@ class LDAPModification{ LDAPModification(const LDAPAttribute& attr, mod_op op); LDAPMod *toLDAPMod() const; + const LDAPAttribute* getAttribute() const; + mod_op getOperation() const; + private: LDAPAttribute m_attr; mod_op m_mod_op;