ldapsdk
0.0.1
Main Page
Classes
Files
File List
File Members
src
StringList.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 STRING_LIST_H
8
#define STRING_LIST_H
9
10
#include <string>
11
#include <list>
15
class
StringList
{
16
typedef
std::list<std::string> ListType;
17
18
private
:
19
ListType m_data;
20
21
public
:
22
typedef
ListType::const_iterator
const_iterator
;
23
27
StringList
();
28
32
StringList
(
const
StringList
& sl);
33
41
StringList
(
char
** values);
42
46
~StringList
();
47
52
char
**
toCharArray
()
const
;
53
58
void
add
(
const
std::string& value);
59
64
size_t
size
()
const
;
65
70
bool
empty
()
const
;
71
75
const_iterator
begin
()
const
;
76
81
const_iterator
end
()
const
;
82
86
void
clear
();
87
};
88
#endif //STRING_LIST_H
Generated by
1.8.1