Emergency 20 Dokumentation  4.2.0
camp_ext::ValueMapper< qsf::Time > Struct Template Reference

Value mapper for qsf::Time. More...

#include <CampQsfTime.h>

Static Public Member Functions

static std::string to (const qsf::Time &source)
 Convert from qsf::Time to std::string. More...
 
template<typename T >
static qsf::Time from (const T &source)
 Convert from any type to qsf::Time. More...
 

Static Public Attributes

static const int type = camp::stringType
 CAMP type associated to qsf::Time. More...
 

Detailed Description

template<>
struct camp_ext::ValueMapper< qsf::Time >

Value mapper for qsf::Time.

Note
  • This class tells CAMP how to handle qsf::Time as a string type

Member Function Documentation

template<typename T >
static qsf::Time camp_ext::ValueMapper< qsf::Time >::from ( const T &  source)
inlinestatic

Convert from any type to qsf::Time.

Parameters
[in]sourceSource value to convert
Returns
source converted to a qsf::Time
Note
  • We simply reuse ValueMapper<std::string>.
static std::string camp_ext::ValueMapper< qsf::Time >::to ( const qsf::Time source)
inlinestatic

Convert from qsf::Time to std::string.

Parameters
[in]sourceSource qsf::Time instance to convert
Returns
source converted to a std::string

Member Data Documentation

const int camp_ext::ValueMapper< qsf::Time >::type = camp::stringType
static

CAMP type associated to qsf::Time.


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