Public Member Functions
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

List of all members.

Public Member Functions

int operator() (const std::string &input) ecl_debug_throw_decl(StandardException)
 Converts a string to an integer type.
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 ( ) [inline, virtual]

Definition at line 45 of file integers.hpp.

Member Function Documentation

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.
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 Wed Aug 26 2015 11:27:10