41 Map::const_iterator it =
_map.
find( key ) ;
55 Map::iterator it =
_map.
find( key ) ;
66 Map::iterator it =
_map.
find( key ) ;
71 return it->second.first ;
82 for( ConfigFlags::Map::const_iterator it = cf.
_map.
begin(); it != cf.
_map.
end() ; ++it){
84 os <<
" option: " << it->second.first <<
"\t: " << it->second.second <<
std::endl ;
void registerOption(unsigned key, const std::string &name, bool defaultValue=false)
friend std::ostream & operator<<(std::ostream &os, const ConfigFlags &flags)
std::map< unsigned, Flag > Map
std::ostream & operator<<(std::ostream &os, const ConfigFlags &cf)
void setOption(unsigned key, bool val)
std::string & optionName(unsigned key)
ConfigFlags()
Helper class that holds a number of boolean properties for configuration.
bool option(unsigned key) const
std::pair< std::string, bool > Flag
bool operator[](unsigned key) const