2 // C++ Interface: acceptedvalues
7 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
12 #ifndef ACCEPTEDVALUES_H
13 #define ACCEPTEDVALUES_H
20 the values that can be passed to an option
22 @author Lorenzo Bettini
24 class AcceptedValues : protected std::list<std::string>
27 typedef std::set<std::string> value_set;
31 using std::list<std::string>::const_iterator;
32 using std::list<std::string>::begin;
33 using std::list<std::string>::end;
35 void insert(const std::string &s);
36 const std::string toString(bool escape = true) const;
37 bool contains(const std::string &s) const;