cgatools::util::StringSet Class Reference

StringSet convenience class. More...

#include <StringSet.hpp>

List of all members.

Public Member Functions

 StringSet (const std::string &csValues, const std::string &csUniverse, const std::string &notFoundMsg)
 Constructs a StringSet.
std::pair< iterator, bool > insert (const std::string &value)
 Inserts the string, checking against the allowed values first.
bool contains (const std::string &value) const

Detailed Description

StringSet convenience class.


Constructor & Destructor Documentation

cgatools::util::StringSet::StringSet ( const std::string &  csValues,
const std::string &  csUniverse,
const std::string &  notFoundMsg 
)

Constructs a StringSet.

Parameters:
csValues A comma-separated list of values to insert. The speciall value "all" means to include all strings from csUniverse.
csUniverse A comma-separated list of values allowed in this StringSet. If this is empty, then any value is allowed. If an item is inserted that is not allowed, an exception is thrown.
notFoundMsg A message to include in the exception when an invalid item is inserted into this set.

Member Function Documentation

std::pair<iterator, bool> cgatools::util::StringSet::insert ( const std::string &  value  ) 

Inserts the string, checking against the allowed values first.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2