#include <LDAPSchema.h>
Public Member Functions | |
| LDAPSchema () | |
| Constructs an empty object. | |
| virtual | ~LDAPSchema () |
| Destructor. | |
| void | setObjectClasses (const StringList &oc) |
| Fill the object_classes map. | |
| void | setAttributeTypes (const StringList &at) |
| Fill the attr_types map. | |
| LDAPObjClass | getObjectClassByName (std::string name) |
| Returns object class object with given name. | |
| LDAPAttrType | getAttributeTypeByName (string name) |
| Returns attribute type object with given name. | |
Private Attributes | |
| map< string, LDAPObjClass > | object_classes |
| map of object classes: index is name, value is LDAPObjClass object | |
| map< string, LDAPAttrType > | attr_types |
| map of attribute types: index is name, value is LDAPAttrType object | |
| LDAPSchema::LDAPSchema | ( | ) |
| LDAPSchema::~LDAPSchema | ( | ) | [virtual] |
| LDAPAttrType LDAPSchema::getAttributeTypeByName | ( | string | name | ) |
| LDAPObjClass LDAPSchema::getObjectClassByName | ( | std::string | name | ) |
Returns object class object with given name.
| void LDAPSchema::setAttributeTypes | ( | const StringList & | at | ) |
Fill the attr_types map.
| at | description of one attribute type (string returned by search command), in form: "( 1.2.3.4.6 NAME ( '<name>' ) DESC '<desc>' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )" |
References attr_types, StringList::begin(), DEBUG, StringList::end(), LDAPAttrType::getNames(), and LDAP_DEBUG_TRACE.
| void LDAPSchema::setObjectClasses | ( | const StringList & | oc | ) |
Fill the object_classes map.
| oc | description of one objectclass (string returned by search command), in form: "( 1.2.3.4.5 NAME '<name>' SUP <supname> STRUCTURAL DESC '' MUST ( <attrtype> ) MAY ( <attrtype> ))" |
References StringList::begin(), DEBUG, StringList::end(), LDAPObjClass::getNames(), LDAP_DEBUG_TRACE, and object_classes.
map<string, LDAPAttrType> LDAPSchema::attr_types [private] |
map of attribute types: index is name, value is LDAPAttrType object
Referenced by getAttributeTypeByName(), and setAttributeTypes().
map<string, LDAPObjClass> LDAPSchema::object_classes [private] |
map of object classes: index is name, value is LDAPObjClass object
Referenced by setObjectClasses().