14 #ifndef ECL_CONVERTERS_CONVERTERS_INTEGERS_HPP_ 15 #define ECL_CONVERTERS_CONVERTERS_INTEGERS_HPP_ 43 class Converter<int,std::string> :
public converters::ConverterBase {
59 std::istringstream stream(input);
61 if ( !( stream >> i ) || (stream.get(c))) {
76 class Converter<int,char> :
public converters::ConverterBase {
89 if ( ( c <
'0' ) || (c >
'9') ) {
93 return static_cast<int>(c -
'0');
138 class Converter<int,char*> :
public converters::ConverterBase {
Primary templates for the family of converter classes.
int operator()(char c)
Converts a char to an integer type.
int operator()(const std::string &input)
Converts a string to an integer type.
Primary template and general fallback for converter classes.
#define ecl_debug_throw(exception)