Public Member Functions
ecl::Converter< int, char > Class Template Reference

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

#include <integers.hpp>

Inheritance diagram for ecl::Converter< int, char >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int operator() (char c) ecl_debug_throw_decl(StandardException)
 Converts a char to an integer type.

Detailed Description

template<>
class ecl::Converter< int, char >

Conversion from a char to an integer type.

This is of course restricted to characters ['0'-'9'].

Exceptions:
StandardException: throws if character is outside the range ['0'-'9'].

Definition at line 76 of file integers.hpp.


Member Function Documentation

int ecl::Converter< int, char >::operator() ( char  c) [inline]

Converts a char to an integer type.

This throws an exception and/or configures the error() function for this converter if the input is not a char digit ['0'-'9'].

Parameters:
c: the input char to be converted [0-9].
Returns:
int : the integer representation of the digit (-1 on failure).
Exceptions:
StandardException: throws if conversion failed (debug mode only).

Definition at line 88 of file integers.hpp.


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


ecl_converters
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Thu Jan 2 2014 11:12:05