tuchulcha  0.10.1
Graphical Workflow Configuration Editor
VarTypeMap Class Reference

Convert parameter types into Qt versions. More...

#include <VarTypeMap.h>

Public Member Functions

QVariant::Type operator[] (QString type) const
 return type map
 

Static Public Member Functions

static VarTypeMapinstance ()
 return reference to an VarTypeMap instance
 

Private Member Functions

 VarTypeMap (const VarTypeMap &)
 not copyable
 
VarTypeMapoperator= (const VarTypeMap &)
 not assignable
 

Private Attributes

QMap< QString, QVariant::Type > _typeMap
 mapping from given type values to QVariant types
 

Static Private Attributes

static VarTypeMap_address
 pointer to the singleMapper instance
 
static QMutex _lock
 Mutex to avoid multiple creation.
 

Detailed Description

This class serves to convert parameter types given as std::string into the corresponding QVariant::Type. This class implements the singleton pattern to ensure, that only one map exists. This class uses a Mutex to be thread-safe.

Definition at line 36 of file VarTypeMap.h.


The documentation for this class was generated from the following files: