Public Member Functions | List of all members
ecl::Converter< int, std::string > Class Template Reference

Conversion from a string to an integer type. More...

#include <integers.hpp>

Inheritance diagram for ecl::Converter< int, std::string >:
Inheritance graph

Public Member Functions

int operator() (const std::string &input) ecl_debug_throw_decl(StandardException)
 Converts a string to an integer type. More...
virtual ~Converter ()

Detailed Description

class ecl::Converter< int, std::string >

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.

Constructor & Destructor Documentation

virtual ecl::Converter< int, std::string >::~Converter ( )

Definition at line 45 of file integers.hpp.

Member Function Documentation

int ecl::Converter< int, std::string >::operator() ( const std::string &  input)

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.
int : the integer representation, INT_MIN on error.
StandardException: throws if conversion failed (debug mode only).

Definition at line 57 of file integers.hpp.

The documentation for this class was generated from the following file:

Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:22