32 QString value, description;
36 explicit Variable(
const QStringList &names,
const QString &value =
"");
37 Variable(
const QStringList &names,
const QString &value,
const QString
41 QString getTrueName()
const;
42 QStringList getAliases()
const;
63 bool operator==(
const Variable &var)
const;
Definition: variableset.h:4
QStringList names
Contains all names that can be used to identify this variable, separated by a comma.
Definition: variable.h:31
static QString substitute(QString str, const VariableSet &variableSet)
Substitute all variables in str with their values.
static Variable find(const VariableSet &list, QString name)
Find a variable named name inside list and return it.
static QString allowedPatterns()
Return the regex pattern that represents a valid variable name.
A model representation of a variable.
Definition: variable.h:24