32 #ifndef DRAIN_CONVERT_FUNDAMENTAL
33 #define DRAIN_CONVERT_FUNDAMENTAL
63 template <
class S,
class D>
65 void convert(
const S & src, D & dst){
66 std::stringstream sstr;
73 void convert(
const char * src, D & dst){
74 std::stringstream sstr(src);
99 void convert(
const char * src, T & dst){
100 std::stringstream sstr(src);
108 void convert(
const T & src, D & dst){
115 void convert(
const S & src, T & dst){
124 std::stringstream sstr;
133 std::stringstream sstr;
Utility class with static conversions.
Definition: Convert.h:88
static void convertTo(const S &src, T &dst)
Convert with cast target type.
Definition: Convert.h:132
static void convert(const T &src, T &dst)
Trivial case: source and destination are of same class.
Definition: Convert.h:94
static void convertFrom(const T &src, D &dst)
Convert with cast source type.
Definition: Convert.h:123
Utility class with static conversions.
Definition: Convert.h:51
static void convert(const T &src, T &dst)
Trivial case: source and destination are of same class.
Definition: Convert.h:58
Definition: DataSelector.cpp:1277