fesa-core  5.0.1
fesa::Converter< T > Class Template Reference

Conversion of values of arbitrary types to strings and vice versa. More...

#include <Converter.h>

Static Public Member Functions

static void valueToString (const T &value, std::string &str)
 Convert a value of type T to a string. More...
 
static void stringToValue (const std::string &value, T *pVal)
 Convert a string to a value of type T. More...
 

Detailed Description

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

Conversion of values of arbitrary types to strings and vice versa.

Member Function Documentation

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

Convert a string to a value of type T.

Parameters
valueThe value as a string to convert
pValThe value as T
template<typename T >
void fesa::Converter< T >::valueToString ( const T &  value,
std::string &  str 
)
inlinestatic

Convert a value of type T to a string.

Parameters
valueThe value as T to convert
OUT]str The value as a string

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