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

Value mapper for QPoint. More...

#include <CampQPoint.h>

Static Public Member Functions

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

Static Public Attributes

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

Detailed Description

template<>
struct camp_ext::ValueMapper< QPoint >

Value mapper for QPoint.

Note
  • This class tells CAMP how to handle QPoint as a string type

Member Function Documentation

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

Convert from any type to QPoint.

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

Convert from QPoint to std::string.

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

Member Data Documentation

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

CAMP type associated to QPoint.


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