ldapsdk 0.0.1
|
00001 // $OpenLDAP$ 00002 /* 00003 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 00004 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00005 */ 00006 00007 #ifndef STRING_LIST_H 00008 #define STRING_LIST_H 00009 00010 #include <string> 00011 #include <list> 00015 class StringList{ 00016 typedef std::list<std::string> ListType; 00017 00018 private: 00019 ListType m_data; 00020 00021 public: 00022 typedef ListType::const_iterator const_iterator; 00023 00027 StringList(); 00028 00032 StringList(const StringList& sl); 00033 00041 StringList(char** values); 00042 00046 ~StringList(); 00047 00052 char** toCharArray() const; 00053 00058 void add(const std::string& value); 00059 00064 size_t size() const; 00065 00070 bool empty() const; 00071 00075 const_iterator begin() const; 00076 00081 const_iterator end() const; 00082 00086 void clear(); 00087 }; 00088 #endif //STRING_LIST_H