Conversion from a string to an integer type. More...
#include <integers.hpp>
Public Member Functions | |
int | operator() (const std::string &input) ecl_debug_throw_decl(StandardException) |
Converts a string to an integer type. | |
virtual | ~Converter () |
Conversion from a string to an integer type.
Very quick conversions to an int type. These are partially based on the stlsoft techniques.
Definition at line 43 of file integers.hpp.
virtual ecl::Converter< int, std::string >::~Converter | ( | ) | [inline, virtual] |
Definition at line 45 of file integers.hpp.
int ecl::Converter< int, std::string >::operator() | ( | const std::string & | input | ) | [inline] |
Converts a string to an integer type.
This throws an exception and/or configures the error() function for this converter if the input does not consist purely of the appropriate digits for an integer.
input | : the input string to be converted. |
StandardException | : throws if conversion failed (debug mode only). |
Definition at line 57 of file integers.hpp.