ldapsdk 0.0.1
LDAPSchema.h
Go to the documentation of this file.
1// $OpenLDAP$
2/*
3 * Copyright 2003-2013 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
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
70
71};
72
73#endif // LDAP_SCHEMA_H
Represents the Attribute Type (from LDAP schema)
Definition: LDAPAttrType.h:20
Represents the Object Class (from LDAP schema)
Definition: LDAPObjClass.h:20
Represents the LDAP schema.
Definition: LDAPSchema.h:19
LDAPAttrType getAttributeTypeByName(string name)
Returns attribute type object with given name.
Definition: LDAPSchema.cpp:76
void setAttributeTypes(const StringList &at)
Definition: LDAPSchema.cpp:47
virtual ~LDAPSchema()
Destructor.
Definition: LDAPSchema.cpp:23
void setObjectClasses(const StringList &oc)
Definition: LDAPSchema.cpp:27
LDAPSchema()
Constructs an empty object.
Definition: LDAPSchema.cpp:18
LDAPObjClass getObjectClassByName(std::string name)
Returns object class object with given name.
Definition: LDAPSchema.cpp:67
Container class to store multiple string-objects.
Definition: StringList.h:15