24#ifndef __BITPIT_CONFIGURATION_TPP__
25#define __BITPIT_CONFIGURATION_TPP__
44 if (std::istringstream(
get(key)) >> value) {
47 throw std::runtime_error(
"Unable to convert the option \"" + key +
"\"");
81 std::ostringstream valueStream;
82 if (valueStream << value) {
83 set(key, valueStream.str());
85 throw std::runtime_error(
"Unable to convert the option \"" + key +
"\"");
const std::string & get(const std::string &key) const
bool hasOption(const std::string &key) const
void set(const std::string &key, const std::string &value)