8 #ifndef LDAP_ATTRIBUTE_H
9 #define LDAP_ATTRIBUTE_H
150 const std::string&
getName()
const ;
156 void setName(
const std::string& name);
Represents the name an value(s) of an Attribute.
Definition: LDAPAttribute.h:21
int getNumValues() const
Definition: LDAPAttribute.cpp:146
bool isNotPrintable() const
Definition: LDAPAttribute.cpp:175
friend std::ostream & operator<<(std::ostream &s, const LDAPAttribute &attr)
This method can be used to dump the data of a LDAPResult-Object.
LDAPMod * toLDAPMod() const
For internal use only.
Definition: LDAPAttribute.cpp:164
void addValue(const std::string &value)
Add a single string value(bin/char) to the Attribute.
BerValue ** getBerValues() const
For interal use only.
Definition: LDAPAttribute.cpp:125
void setName(const std::string &name)
Sets the Attribute's name (type)
Definition: LDAPAttribute.cpp:156
const StringList & getValues() const
Definition: LDAPAttribute.cpp:120
LDAPAttribute(const std::string &name, const StringList &values)
Construct an attribute with multiple string values.
~LDAPAttribute()
Destructor.
Definition: LDAPAttribute.cpp:73
int setValues(char **values)
Set the values of the attribute.
Definition: LDAPAttribute.cpp:91
LDAPAttribute(const std::string &name, const std::string &value="")
Construct an Attribute with a single string value.
LDAPAttribute()
Default constructor.
Definition: LDAPAttribute.cpp:25
const std::string & getName() const
Definition: LDAPAttribute.cpp:151
Container class to store multiple string-objects.
Definition: StringList.h:15