Class that contains conversion method to convert numeric data types to string and strings to numeric data types. More...
#include <Converter.h>
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. |
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.
void fesa::Converter< T >::stringToValue | ( | const std::string & | value, | |
T * | pVal | |||
) | [inline, static] |
Method to convert string value into numeric value of type T.
value | string value that will be converted |
Definition at line 49 of file Converter.h.
Referenced by fesa::ArrayUtilities< T >::fillArray(), and fesa::Converter< FaultField_DataType >::stringToValue().
void fesa::Converter< T >::valueToString | ( | T | value, | |
std::string & | str | |||
) | [inline, static] |
Method to convert numeric value of type T into string value.
value | numeric value that will be converted |
Definition at line 41 of file Converter.h.
Referenced by fesa::Converter< FaultField_DataType >::valueToString().