Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LDAPSchema.h

Go to the documentation of this file.
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 <ldap.h>
00010 #include <string>
00011 #include <map>
00012 
00013 #include "LDAPObjClass.h"
00014 #include "LDAPAttrType.h"
00015 
00019 class LDAPSchema{
00020     private :
00024     map <string, LDAPObjClass> object_classes;
00025     
00029     map <string, LDAPAttrType> attr_types;
00030 
00031     public :
00032 
00036         LDAPSchema();
00037 
00041         virtual ~LDAPSchema();
00042     
00050     void setObjectClasses (const StringList &oc);
00051 
00059     void setAttributeTypes (const StringList &at);
00060 
00064     LDAPObjClass getObjectClassByName (std::string name);
00065     
00069     LDAPAttrType getAttributeTypeByName (string name);
00070 
00071 };
00072 
00073 #endif // LDAP_SCHEMA_H

Generated on Wed Nov 12 02:19:03 2008 for ldapsdk by  doxygen 1.3.9.1