ldapsdk
0.0.1
Main Page
Classes
Files
File List
File Members
src
LDAPSchema.h
Go to the documentation of this file.
1
// $OpenLDAP$
2
/*
3
* Copyright 2003-2011 The OpenLDAP Foundation, All Rights Reserved.
4
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5
*/
6
7
#ifndef LDAP_SCHEMA_H
8
#define LDAP_SCHEMA_H
9
10
#include <string>
11
#include <map>
12
13
#include "
LDAPObjClass.h
"
14
#include "
LDAPAttrType.h
"
15
19
class
LDAPSchema
{
20
private
:
24
map <string, LDAPObjClass> object_classes;
25
29
map <string, LDAPAttrType> attr_types;
30
31
public
:
32
36
LDAPSchema
();
37
41
virtual
~LDAPSchema
();
42
50
void
setObjectClasses
(
const
StringList
&oc);
51
59
void
setAttributeTypes
(
const
StringList
&at);
60
64
LDAPObjClass
getObjectClassByName
(std::string name);
65
69
LDAPAttrType
getAttributeTypeByName
(
string
name);
70
71
};
72
73
#endif // LDAP_SCHEMA_H
Generated by
1.8.1