Conv< string > Class Template Reference
#include <Conv.h>
List of all members.
Static Public Member Functions |
static unsigned int | size (const string &val) |
static const string | buf2val (double **buf) |
static void | val2buf (const string &val, double **buf) |
static void | str2val (string &val, const string &s) |
static void | val2str (string &s, const string &val) |
static string | rttiType () |
Detailed Description
template<>
class Conv< string >
This stores the data as the equivalent of a char* string, terminated with the usual , but allocates it as a double[].
Member Function Documentation
static const string Conv< string >::buf2val |
( |
double ** |
buf |
) |
[inline, static] |
static string Conv< string >::rttiType |
( |
|
) |
[inline, static] |
static unsigned int Conv< string >::size |
( |
const string & |
val |
) |
[inline, static] |
This is the size used in the serialized form, as a double* Note that we do some ugly stuff to get alignment on 8-byte boundaries. We need to have strlen + 1 as a minimum.
static void Conv< string >::str2val |
( |
string & |
val, |
|
|
const string & |
s | |
|
) |
| | [inline, static] |
static void Conv< string >::val2buf |
( |
const string & |
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().
static void Conv< string >::val2str |
( |
string & |
s, |
|
|
const string & |
val | |
|
) |
| | [inline, static] |
The documentation for this class was generated from the following file: