#include <LDAPAttribute.h>
Public Member Functions | |
| LDAPAttribute () | |
| Default constructor. | |
| LDAPAttribute (const LDAPAttribute &attr) | |
| Copy constructor. | |
| LDAPAttribute (const std::string &name, const std::string &value="") | |
| Construct an Attribute with a single string value. | |
| LDAPAttribute (const char *name, char **values) | |
| Construct an attribute with multiple string values. | |
| LDAPAttribute (const std::string &name, const StringList &values) | |
| Construct an attribute with multiple string values. | |
| LDAPAttribute (const char *name, BerValue **values) | |
| Construct an attribute with multiple binary coded values. | |
| ~LDAPAttribute () | |
| Destructor. | |
| void | addValue (const std::string &value) |
| Add a single string value(bin/char) to the Attribute. | |
| int | addValue (const BerValue *value) |
| Add a single binary value to the Attribute. | |
| int | setValues (char **values) |
| Set the values of the attribute. | |
| int | setValues (BerValue **values) |
| Set the values of the attribute. | |
| void | setValues (const StringList &values) |
| Set the values of the attribute. | |
| BerValue ** | getBerValues () const |
| For interal use only. | |
| const StringList & | getValues () const |
| int | getNumValues () const |
| const std::string & | getName () const |
| void | setName (const std::string &name) |
| Sets the Attribute's name (type). | |
| LDAPMod * | toLDAPMod () const |
| For internal use only. | |
| bool | isNotPrintable () const |
Private Attributes | |
| std::string | m_name |
| StringList | m_values |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const LDAPAttribute &attr) |
| This method can be used to dump the data of a LDAPResult-Object. | |
|
|
Default constructor. initializes an empty object. |
|
|
Copy constructor. Copies all values of an Attribute to a new one
|
|
||||||||||||
|
Construct an Attribute with a single string value.
|
|
||||||||||||
|
Construct an attribute with multiple string values.
|
|
||||||||||||
|
Construct an attribute with multiple string values.
|
|
||||||||||||
|
Construct an attribute with multiple binary coded values.
|
|
|
Destructor.
|
|
|
Add a single binary value to the Attribute.
|
|
|
Add a single string value(bin/char) to the Attribute.
|
|
|
For interal use only. This method is used to translate the values of the Attribute to 0-terminated Array of BerValue-structs as used by the C-API
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets the Attribute's name (type).
|
|
|
Set the values of the attribute. If the object does already contain some values, they will be deleted
|
|
|
Set the values of the attribute. If the object does already contain some values, they will be deleted
|
|
|
Set the values of the attribute. If the object contains some values already, they are deleted
|
|
|
For internal use only. This method translate the attribute of the object into a LDAPMod-Structure as used by the C-API |
|
||||||||||||
|
This method can be used to dump the data of a LDAPResult-Object. It is only useful for debugging purposes at the moment |
|
|
|
|
|
|
1.4.6