ldapsdk
0.0.1
Main Page
Classes
Files
File List
File Members
src
LDAPAttribute.h
Go to the documentation of this file.
1
// $OpenLDAP$
2
/*
3
* Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5
*/
6
7
8
#ifndef LDAP_ATTRIBUTE_H
9
#define LDAP_ATTRIBUTE_H
10
11
#include<iostream>
12
#include<string>
13
#include<ldap.h>
14
#include<lber.h>
15
16
#include <
StringList.h
>
17
21
class
LDAPAttribute
{
22
public
:
27
LDAPAttribute
();
28
34
LDAPAttribute
(
const
LDAPAttribute
& attr);
35
43
LDAPAttribute
(
const
std::string& name,
const
std::string& value=
""
);
44
51
LDAPAttribute
(
const
char
* name,
char
**values);
52
60
LDAPAttribute
(
const
std::string& name,
const
StringList
& values);
61
72
LDAPAttribute
(
const
char
* name, BerValue **values);
73
77
~LDAPAttribute
();
78
84
void
addValue
(
const
std::string& value);
85
93
int
addValue
(
const
BerValue *value);
94
104
int
setValues
(
char
** values);
105
115
int
setValues
(BerValue** values);
116
124
void
setValues
(
const
StringList
& values);
125
135
BerValue**
getBerValues
()
const
;
136
140
const
StringList
&
getValues
()
const
;
141
145
int
getNumValues
()
const
;
146
150
const
std::string&
getName
()
const
;
151
156
void
setName
(
const
std::string& name);
157
164
LDAPMod*
toLDAPMod
()
const
;
165
169
bool
isNotPrintable
()
const
;
170
171
private
:
172
std::string m_name;
173
StringList
m_values;
174
179
friend
std::ostream&
operator <<
(std::ostream& s,
const
LDAPAttribute
& attr);
180
};
181
#endif //#ifndef LDAP_ATTRIBUTE_H
Generated by
1.8.1