From: Ralf Haferkamp Date: Thu, 22 Jan 2004 16:26:38 +0000 (+0000) Subject: add getKind method X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14a6bced6698d8916b6e727547a2a541bb006e8f;p=openldap add getKind method --- diff --git a/contrib/ldapc++/src/LDAPObjClass.cpp b/contrib/ldapc++/src/LDAPObjClass.cpp index c78a675db8..6ebc513729 100644 --- a/contrib/ldapc++/src/LDAPObjClass.cpp +++ b/contrib/ldapc++/src/LDAPObjClass.cpp @@ -121,3 +121,9 @@ string LDAPObjClass::getName () { else return *(names.begin()); } + +int LDAPObjClass::getKind () { + return kind; +} + + diff --git a/contrib/ldapc++/src/LDAPObjClass.h b/contrib/ldapc++/src/LDAPObjClass.h index 4a383d6dfd..94e0ea9b5f 100644 --- a/contrib/ldapc++/src/LDAPObjClass.h +++ b/contrib/ldapc++/src/LDAPObjClass.h @@ -67,6 +67,11 @@ class LDAPObjClass{ */ string getName (); + /** + * Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY + */ + int getKind (); + /** * Returns all object class names */