14 #ifndef ECL_CONVERTERS_CONVERTERS_INTEGERS_HPP_ 15 #define ECL_CONVERTERS_CONVERTERS_INTEGERS_HPP_ 23 #include <ecl/exceptions/standard_exception.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');
106 class Converter<int,unsigned char*> {
138 class Converter<int,char*> :
public converters::ConverterBase {
212 class Converter<int,void> :
213 public Converter<int,std::string>,
214 public Converter<int,char>
219 using Converter<int,std::string>::operator();
220 using Converter<int,char>::operator();
#define LOC
Stringify the line of code you are at.
Output operator()(const Input &input)
#define ecl_debug_throw_decl(exception)
Debug mode throw exception declaration.
#define ecl_debug_throw(exception)
Debug mode exception throw.