34 typedef std::map<std::string,std::string>
StringMap ;
39 class StringMapReader ;
51 const std::string &
at(
const std::string & key )
const ;
54 const std::string &
at(
const std::string & key ,
const std::string & default_ )
const ;
57 StringArray keys(
unsigned int limit = 0U ,
const char * elipsis =
nullptr )
const ;
StringMapReader(const StringMap &map_)
Implicit constructor.
An adaptor for reading a const map<string,string> with at(key).
std::vector< std::string > StringArray
A std::vector of std::strings.
const std::string & at(const std::string &key) const
Returns the value from the map, or throws.
StringArray keys(unsigned int limit=0U, const char *elipsis=nullptr) const
Returns a list of the keys in the map (optionally up to some limit).
std::map< std::string, std::string > StringMap
A std::map of std::strings.