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 00028 public : 00029 00033 LDAPAttrType(); 00034 00038 LDAPAttrType (const LDAPAttrType& oc); 00039 00048 LDAPAttrType (string at_item); 00049 00053 virtual ~LDAPAttrType(); 00054 00055 00059 string getDesc (); 00060 00064 string getOid (); 00065 00069 string getName (); 00070 00074 StringList getNames(); 00075 00079 bool isSingle(); 00080 00081 void setNames (char **at_names); 00082 void setDesc (char *at_desc); 00083 void setOid (char *at_oid); 00084 void setSingle (int at_single_value); 00085 00086 }; 00087 00088 #endif // LDAP_ATTRTYPE_H