mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
33 lines
710 B
C
33 lines
710 B
C
|
|
/*
|
||
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
||
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef STRING_LIST_H
|
||
|
|
#define STRING_LIST_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include <list>
|
||
|
|
typedef list<string> ListType;
|
||
|
|
|
||
|
|
class StringList{
|
||
|
|
typedef ListType::const_iterator const_iterator;
|
||
|
|
|
||
|
|
private:
|
||
|
|
ListType m_data;
|
||
|
|
|
||
|
|
public:
|
||
|
|
StringList();
|
||
|
|
StringList(const StringList& sl);
|
||
|
|
StringList(char** values);
|
||
|
|
~StringList();
|
||
|
|
|
||
|
|
char** toCharArray() const;
|
||
|
|
void add(const string& value);
|
||
|
|
size_t size() const;
|
||
|
|
const_iterator begin() const;
|
||
|
|
const_iterator end() const;
|
||
|
|
void clear();
|
||
|
|
};
|
||
|
|
#endif //STRING_LIST_H
|