2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 // $Id: LDAPAttribute.h,v 1.5 2000/08/31 17:43:48 rhafer Exp $
8 #ifndef LDAP_ATTRIBUTE_H
9 #define LDAP_ATTRIBUTE_H
16 typedef list<BerValue*> ValueList;
26 LDAPAttribute(const LDAPAttribute& attr);
27 LDAPAttribute(const char* name=0, const char *value=0);
28 LDAPAttribute(const char* name, char **values);
29 LDAPAttribute(const char* name, BerValue **values);
32 int addValue(const char *value);
33 int addValue(const BerValue *value);
34 int setValues(char** values);
35 int setValues(BerValue** values);
36 int setValues(ValueList values);
37 BerValue** getValues() const;
38 int getNumValues() const;
40 int setName(const char *name);
41 bool isNotPrintable() const ;
43 LDAPMod* toLDAPMod() const ;
45 friend ostream& operator << (ostream& s, const LDAPAttribute& attr);
47 #endif //#ifndef LDAP_ATTRIBUTE_H