LDAPAttrType.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_ATTRTYPE_H
00007 #define LDAP_ATTRTYPE_H
00008 
00009 #include <ldap_schema.h>
00010 #include <string>
00011 
00012 #include "StringList.h"
00013 
00014 #define SCHEMA_PARSE_FLAG    0x03
00015 
00016 
00017 using namespace std;
00018 
00022 class LDAPAttrType{
00023     private :
00024     StringList names;
00025     string desc, oid;
00026     bool single;
00027     int usage;
00028     
00029     public :
00030 
00034         LDAPAttrType();
00035 
00039     LDAPAttrType (const LDAPAttrType& oc);
00040 
00049         LDAPAttrType (string at_item);
00050 
00054         virtual ~LDAPAttrType();
00055     
00056     
00060     string getDesc ();
00061     
00065     string getOid ();
00066 
00070     string getName ();
00071 
00075     StringList getNames();
00076     
00080     bool isSingle();
00081     
00087     int getUsage ();
00088 
00089     void setNames (char **at_names);
00090     void setDesc (char *at_desc);
00091     void setOid (char *at_oid);
00092     void setSingle (int at_single_value);
00093     void setUsage (int at_usage );
00094 };
00095 
00096 #endif // LDAP_ATTRTYPE_H

Generated on Sat Sep 22 10:21:52 2007 for ldapsdk by  doxygen 1.5.3