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

Value mapper for QSize. More...

#include <CampQSize.h>

Static Public Member Functions

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

Static Public Attributes

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

Detailed Description

template<>
struct camp_ext::ValueMapper< QSize >

Value mapper for QSize.

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

Member Function Documentation

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

Convert from any type to QSize.

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

Convert from QSize to std::string.

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

Member Data Documentation

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

CAMP type associated to QSize.


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