ldapsdk
0.0.1
Main Page
Classes
Files
File List
File Members
src
LDAPControlSet.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
#ifndef LDAP_CONTROL_SET_H
8
#define LDAP_CONTROL_SET_H
9
10
#include <list>
11
#include <ldap.h>
12
#include <
LDAPControl.h
>
13
14
typedef
std::list<LDAPCtrl>
CtrlList
;
15
19
class
LDAPControlSet
{
20
typedef
CtrlList::const_iterator const_iterator;
21
public
:
25
LDAPControlSet
();
26
27
31
LDAPControlSet
(
const
LDAPControlSet
& cs);
32
44
LDAPControlSet
(LDAPControl** controls);
45
49
~LDAPControlSet
();
50
55
size_t
size
()
const
;
56
61
bool
empty
()
const
;
62
66
const_iterator
begin
()
const
;
67
72
const_iterator
end
()
const
;
73
78
void
add
(
const
LDAPCtrl
& ctrl);
79
84
LDAPControl**
toLDAPControlArray
()
const
;
85
static
void
freeLDAPControlArray
(LDAPControl **ctrl);
86
private
:
87
CtrlList
data;
88
} ;
89
#endif //LDAP_CONTROL_SET_H
Generated by
1.8.1