ldapsdk 0.0.1

LDAPObjClass.h

Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2003, OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 #ifndef LDAP_OBJCLASS_H
00008 #define LDAP_OBJCLASS_H
00009 
00010 #include <ldap_schema.h>
00011 #include <string>
00012 
00013 #include "StringList.h"
00014 
00015 using namespace std;
00016 
00020 class LDAPObjClass{
00021     private :
00022     StringList names, must, may, sup;
00023     string desc, oid;
00024     int kind;
00025     
00026     public :
00027 
00031         LDAPObjClass();
00032 
00036     LDAPObjClass( const LDAPObjClass& oc );
00037 
00046         LDAPObjClass (string oc_item, int flags = LDAP_SCHEMA_ALLOW_NO_OID |
00047                       LDAP_SCHEMA_ALLOW_QUOTED);
00048 
00052         virtual ~LDAPObjClass();
00053     
00057     string getDesc() const;
00058     
00062     string getOid() const;
00063 
00067     string getName() const;
00068 
00072     int getKind() const;
00073 
00077     StringList getNames() const;
00078     
00082     StringList getMust() const;
00083     
00087     StringList getMay() const;
00088     
00092     StringList getSup() const;
00093 
00094     void setNames (char **oc_names);
00095     void setMay (char **oc_may);
00096     void setMust (char **oc_must);
00097     void setDesc (char *oc_desc);
00098     void setOid (char *oc_oid);
00099     void setKind (int oc_kind);
00100     void setSup (char **oc_sup);
00101     
00102 };
00103 
00104 #endif // LDAP_OBJCLASS_H