![]() |
tuchulcha
0.10.1
Graphical Workflow Configuration Editor
|
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 VarTypeMap & | instance () |
| return reference to an VarTypeMap instance | |
Private Member Functions | |
| VarTypeMap (const VarTypeMap &) | |
| not copyable | |
| VarTypeMap & | operator= (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. | |
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.