ldapsdk 0.0.1
|
00001 // $OpenLDAP$ 00002 /* 00003 * Copyright 2003, OpenLDAP Foundation, All Rights Reserved. 00004 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00005 */ 00006 00007 #ifndef LDAP_ATTRTYPE_H 00008 #define LDAP_ATTRTYPE_H 00009 00010 #include <ldap_schema.h> 00011 #include <string> 00012 00013 #include "StringList.h" 00014 00015 using namespace std; 00016 00020 class LDAPAttrType{ 00021 private : 00022 StringList names; 00023 std::string desc, oid, superiorOid, equalityOid; 00024 std::string orderingOid, substringOid, syntaxOid; 00025 bool single; 00026 int usage; 00027 00028 public : 00029 00033 LDAPAttrType(); 00034 00043 LDAPAttrType (string at_item, int flags = LDAP_SCHEMA_ALLOW_NO_OID | 00044 LDAP_SCHEMA_ALLOW_QUOTED ); 00045 00049 virtual ~LDAPAttrType(); 00050 00051 00055 string getDesc() const; 00056 00060 string getOid() const; 00061 00065 string getName() const; 00066 00070 StringList getNames() const; 00071 00075 bool isSingle() const; 00076 00082 int getUsage () const; 00083 std::string getSuperiorOid() const; 00084 std::string getEqualityOid() const; 00085 std::string getOrderingOid() const; 00086 std::string getSubstringOid() const; 00087 std::string getSyntaxOid() const; 00088 00089 void setNames( char **at_names); 00090 void setDesc(const char *at_desc); 00091 void setOid(const char *at_oid); 00092 void setSingle(int at_single_value); 00093 void setUsage(int at_usage ); 00094 void setSuperiorOid( const char *oid ); 00095 void setEqualityOid( const char *oid ); 00096 void setOrderingOid( const char *oid ); 00097 void setSubstringOid( const char *oid ); 00098 void setSyntaxOid( const char *oid ); 00099 }; 00100 00101 #endif // LDAP_ATTRTYPE_H