StringList.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
00003  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00004  */
00005 
00006 #ifndef STRING_LIST_H
00007 #define STRING_LIST_H
00008 
00009 #include <string>
00010 #include <list>
00014 class StringList{
00015     typedef std::list<std::string> ListType;
00016 
00017     private:
00018         ListType m_data;
00019 
00020     public:
00021     typedef ListType::const_iterator const_iterator;
00022    
00026         StringList();
00027 
00031         StringList(const StringList& sl);
00032 
00040         StringList(char** values);
00041 
00045         ~StringList();
00046     
00051         char** toCharArray() const;
00052   
00057         void add(const std::string& value);
00058 
00063         size_t size() const;
00064 
00069         bool empty() const;
00070 
00074         const_iterator begin() const;
00075 
00080         const_iterator end() const;
00081 
00085         void clear(); 
00086 };
00087 #endif //STRING_LIST_H

Generated on Fri Jun 16 17:48:53 2006 for ldapsdk by  doxygen 1.4.6