names = StringList ();
must = StringList();
may = StringList();
+ sup = StringList();
}
LDAPObjClass::LDAPObjClass (const LDAPObjClass &oc){
must = oc.must;
may = oc.may;
kind = oc.kind;
+ sup = oc.sup;
}
LDAPObjClass::LDAPObjClass (string oc_item) {
this->setKind (o->oc_kind);
this->setMust (o->oc_at_oids_must);
this->setMay (o->oc_at_oids_may);
+ this->setSup (o->oc_sup_oids);
}
// else? -> error
}
may = StringList (oc_may);
}
+void LDAPObjClass::setSup (char **oc_sup) {
+ sup = StringList (oc_sup);
+}
+
void LDAPObjClass::setDesc (char *oc_desc) {
desc = string ();
if (oc_desc)
return may;
}
+StringList LDAPObjClass::getSup () {
+ return sup;
+}
+
string LDAPObjClass::getName () {
if (names.empty())
*/
class LDAPObjClass{
private :
- StringList names, must, may;
+ StringList names, must, may, sup;
string desc, oid;
int kind;
* Returns list of allowed (and not required) attributes
*/
StringList getMay();
+
+ /**
+ * Returns list of the OIDs of the superior ObjectClasses
+ */
+ StringList getSup();
void setNames (char **oc_names);
void setMay (char **oc_may);
void setDesc (char *oc_desc);
void setOid (char *oc_oid);
void setKind (int oc_kind);
+ void setSup (char **oc_sup);
};