// // C++ Interface: acceptedvalues // // Description: // // // Author: Lorenzo Bettini , (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #ifndef ACCEPTEDVALUES_H #define ACCEPTEDVALUES_H #include #include #include /** the values that can be passed to an option @author Lorenzo Bettini */ class AcceptedValues : protected std::list { private: typedef std::set value_set; value_set values; public: using std::list::const_iterator; using std::list::begin; using std::list::end; void insert(const std::string &s); const std::string toString(bool escape = true) const; bool contains(const std::string &s) const; }; #endif