00001 /* 00002 * Copyright 2003, OpenLDAP Foundation, All Rights Reserved. 00003 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00004 */ 00005 00006 #ifndef LDAP_SCHEMA_H 00007 #define LDAP_SCHEMA_H 00008 00009 #include <string> 00010 #include <map> 00011 00012 #include "LDAPObjClass.h" 00013 #include "LDAPAttrType.h" 00014 00018 class LDAPSchema{ 00019 private : 00023 map <string, LDAPObjClass> object_classes; 00024 00028 map <string, LDAPAttrType> attr_types; 00029 00030 public : 00031 00035 LDAPSchema(); 00036 00040 virtual ~LDAPSchema(); 00041 00049 void setObjectClasses (const StringList &oc); 00050 00058 void setAttributeTypes (const StringList &at); 00059 00063 LDAPObjClass getObjectClassByName (std::string name); 00064 00068 LDAPAttrType getAttributeTypeByName (string name); 00069 00070 }; 00071 00072 #endif // LDAP_SCHEMA_H
1.5.5