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

Class that contains conversion method to convert array2D data. More...

#include <ConverterArray2D.h>

Static Public Member Functions

static void valueToString (const T *value, std::size_t sizeDim1, std::size_t sizeDim2, std::string &result)
 Method to convert arrays2D of type T to string. More...
 
static std::pair< std::size_t,
std::size_t > 
stringToValue (T *value, const std::string &str, std::size_t sizeDim1, std::size_t sizeDim2)
 Method to convert string to arrays2D of type T. More...
 

Detailed Description

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

Class that contains conversion method to convert array2D data.

Member Function Documentation

template<typename T >
std::pair< std::size_t, std::size_t > fesa::ConverterArray2D< T >::stringToValue ( T *  value,
const std::string &  str,
std::size_t  sizeDim1,
std::size_t  sizeDim2 
)
inlinestatic

Method to convert string to arrays2D of type T.

Parameters
valuepointer to the 2D array
strstring which is to convert
sizeDim1size of first dimension of the 2D-array
sizeDim2size of second dimension of the 2D-array
Returns
pair of newSizeDim1 and newSizeDim2
template<typename T >
void fesa::ConverterArray2D< T >::valueToString ( const T *  value,
std::size_t  sizeDim1,
std::size_t  sizeDim2,
std::string &  result 
)
inlinestatic

Method to convert arrays2D of type T to string.

Parameters
valuepointer to the values to convert
sizeDim1size of first dimension of the 2D-array which is to convert
sizeDim2size of second dimension of the 2D-array which is to convert
resultresulting string

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