GemaCoreLib
The GeMA Core library
Namespaces | Functions
gmParseUtils.h File Reference

Utilitary functions for parsing model constructions. More...

#include "gmCoreConfig.h"
#include "gmInterpolator.h"
#include <QVariant>
Include dependency graph for gmParseUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GmParseUtils
 Groups utilitary routines for parsing models.
 

Functions

int GmParseUtils::parseDimension (QVariant dim, int *nlin, int *ncol, int *ndepth)
 An auxiliary function to parse dimension values that can be expressed both as a single number or a string in the format 'dxd' (and optionally in the format 'dxdxd' if ndepth != NULL). More...
 
bool GmParseUtils::parseFormat (QString formatStr, int *fieldWidth, char *format, int *precision)
 An auxiliary function used to parse a format string using the syntax: "%d.%d[fgeGE]" Returns the parsed formats in the arguments fieldWidth, format and precision. More...
 
void GmParseUtils::parseDefault (QVariant def, int nlin, int ncol, QString &defString, double *defVal)
 An auxilliary function used to parse a default value definition, accepting scalars, tables or function/constant names. More...
 
bool GmParseUtils::parseDataSrcString (QString str, QString &src, QString *unit, int *dim, QString *as)
 
bool GmParseUtils::parseDataSrc (QVariant def, QString &srcId, QString *unit, int *dim, QString *alias, int *history, bool acceptsNoInterp, GmInterpolatorType *interpType, QVariant *interpParam, QString &err)
 

Detailed Description

Utilitary functions for parsing model constructions.

Author
Carlos Augusto Teixeira Mendes
Date
august, 2021