28 #ifndef HELPERCOMMON_H
29 #define HELPERCOMMON_H
32 #include "sharedStructures.h"
39 #if !defined(Q_MOC_RUN) || defined(ITOMCOMMONQT_MOC) //only moc this file in itomCommonQtLib but not in other libraries or executables linking against this itomCommonQtLib
44 ito::RetVal ITOMCOMMONQT_EXPORT
checkParamVectors(QVector<ito::Param> *paramsMand, QVector<ito::Param> *paramsOpt, QVector<ito::Param> *paramsOut);
48 ITOMCOMMONQT_EXPORT QHash<QString, ito::Param*> createParamHashTable(QVector<ito::Param> *paramVec);
50 bool ITOMCOMMONQT_EXPORT checkNumericParamRange(
const ito::Param ¶m,
double &value,
bool *ok = NULL);
52 ito::RetVal ITOMCOMMONQT_EXPORT
parseParamName(
const QString &name, QString ¶mName,
bool &hasIndex,
int &index, QString &additionalTag);
54 ito::RetVal ITOMCOMMONQT_EXPORT getParamValue(
const QMap<QString, Param> *m_params,
const QString &key,
ito::Param &value, QString &pkey,
int &index);
55 ito::RetVal ITOMCOMMONQT_EXPORT setParamValue(
const QMap<QString, Param> *m_params,
const QString &key,
const ito::ParamBase &value, QString &pkey,
int &index);
58 #endif //#if !defined(Q_MOC_RUN) || defined(ITOMCOMMONQT_MOC)
ito::RetVal ITOMCOMMONQT_EXPORT checkParamVectors(QVector< ito::Param > *paramsMand, QVector< ito::Param > *paramsOpt, QVector< ito::Param > *paramsOut)
verifies that the three param vectors are not NULL
Definition: helperCommon.cpp:64
Class for managing status values (like errors or warning)
Definition: retVal.h:54
class for parameter handling e.g. to pass paramters to plugins
Definition: param.h:283
Definition: apiFunctionsGraph.cpp:39
ito::RetVal ITOMCOMMONQT_EXPORT checkParamVector(QVector< ito::Param > *params)
checks param vector
Definition: helperCommon.cpp:43
ITOMCOMMONQT_EXPORT ito::Param * getParamByName(QVector< ito::Param > *paramVec, const char *name, ito::RetVal *retval=NULL)
brief returns a parameter from the parameter-vector, that fits to a specific name ...
Definition: helperCommon.cpp:90
ito::RetVal ITOMCOMMONQT_EXPORT parseParamName(const QString &name, QString ¶mName, bool &hasIndex, int &index, QString &additionalTag)
parses parameter name with respect to regular expression, assigned for parameter-communcation with pl...
Definition: helperCommon.cpp:413