fesa::Converter< T > Class Template Reference

Class that contains conversion method to convert numeric data types to string and strings to numeric data types. More...

#include <Converter.h>

List of all members.

Static Public Member Functions

static void valueToString (T value, std::string &str)
 Method to convert numeric value of type T into string value.
static void stringToValue (const std::string &value, T *pVal)
 Method to convert string value into numeric value of type T.

Detailed Description

template<typename T>
class fesa::Converter< T >

Class that contains conversion method to convert numeric data types to string and strings to numeric data types.

Specialization for structs. In case of structs a different specialization should be provided for each type of struct Setting or Configuration Field. This default implementation of the converter for structs are meant to be used for Acquisition Struct Fields. For those fields store and restore methods should not be called so the Converter.

Class that contains conversion method to convert signed char values to string and strings to signed char.

Class that contains conversion method to convert boolean data to string and strings to boolean.

Definition at line 21 of file Converter.h.


Member Function Documentation

template<typename T >
void fesa::Converter< T >::stringToValue ( const std::string &  value,
T *  pVal 
) [inline, static]

Method to convert string value into numeric value of type T.

Parameters:
value string value that will be converted
Returns:
converted value as string

Definition at line 49 of file Converter.h.

Referenced by fesa::ArrayUtilities< T >::fillArray(), and fesa::Converter< FaultField_DataType >::stringToValue().

template<typename T >
void fesa::Converter< T >::valueToString ( value,
std::string &  str 
) [inline, static]

Method to convert numeric value of type T into string value.

Parameters:
value numeric value that will be converted
Returns:
converted value as string

Definition at line 41 of file Converter.h.

Referenced by fesa::Converter< FaultField_DataType >::valueToString().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1