#include <Conv.h>
Static Public Member Functions | |
static unsigned int | size (const T &val) |
static const T & | buf2val (double **buf) |
static void | val2buf (const T &val, double **buf) |
static void | str2val (T &val, const string &s) |
static void | val2str (string &s, const T &val) |
static string | rttiType () |
static const T& Conv< T >::buf2val | ( | double ** | buf | ) | [inline, static] |
References Conv< T >::size().
Referenced by testConvVector(), and testConvVectorOfVectors().
static string Conv< T >::rttiType | ( | ) | [inline, static] |
Referenced by Conv< vector< T > >::rttiType(), and Conv< vector< vector< T > > >::rttiType().
static unsigned int Conv< T >::size | ( | const T & | val | ) | [inline, static] |
Size, in units of sizeof(double). So a double would be 1, something with 1 chars would be 1 as well, but something with 9 chars would be 2.
Referenced by Conv< string >::buf2val(), Conv< T >::buf2val(), OpFunc2Base< A1, A2 >::opVecBuffer(), Conv< vector< T > >::size(), Conv< vector< vector< T > > >::size(), testConvVector(), testConvVectorOfVectors(), Conv< string >::val2buf(), and Conv< T >::val2buf().
static void Conv< T >::str2val | ( | T & | val, | |
const string & | s | |||
) | [inline, static] |
Default conversion from string just puts the string into the char* pointer.
static void Conv< T >::val2buf | ( | const T & | val, | |
double ** | buf | |||
) | [inline, static] |
Converts data contents into double* buf. Buf must be allocated ahead of time. Returns size of value. Needs to be specialized for variable size and pointer-containing types T.
References Conv< T >::size().
Referenced by testConvVector(), testConvVectorOfVectors(), Conv< vector< T > >::val2buf(), and Conv< vector< vector< T > > >::val2buf().
static void Conv< T >::val2str | ( | string & | s, | |
const T & | val | |||
) | [inline, static] |
Default conversion into string just puts the char* representation into the string. Arguably a bad way to do it.