This class is used for remembering/managing dynamic variables This are a kind of environment variables that are dependent on the given context.
More...
#include <dynamicvariables.h>
This class is used for remembering/managing dynamic variables This are a kind of environment variables that are dependent on the given context.
◆ DynamicVariables()
edbee::DynamicVariables::DynamicVariables |
( |
| ) |
|
◆ ~DynamicVariables()
edbee::DynamicVariables::~DynamicVariables |
( |
| ) |
|
|
virtual |
◆ find()
Finds the variable for the given condition.
- Parameters
-
name | the name of the variable to search |
scopeList | the scope list to find the variable for |
◆ set()
void edbee::DynamicVariables::set |
( |
const QString & |
name, |
|
|
const QVariant & |
value |
|
) |
| |
Sets the given static variable to the given value.
- Parameters
-
◆ setAndGiveScopedSelector()
void edbee::DynamicVariables::setAndGiveScopedSelector |
( |
const QString & |
name, |
|
|
const QVariant & |
value, |
|
|
const QString & |
selector |
|
) |
| |
defines a dynamic variable and gives to the dynamic variables environment
- Parameters
-
name | the name of the variable to set |
value | the value of the variable |
scopes | the scope selector |
Todo, perhaps we should detect identical scope selectors and replace the original
◆ size()
int edbee::DynamicVariables::size |
( |
| ) |
const |
Returns the number of variables available.
- Returns
- the number of variable names. (there can be more values as variables)
◆ value()
QVariant edbee::DynamicVariables::value |
( |
const QString & |
name, |
|
|
TextScopeList * |
scopelist = 0 |
|
) |
| |
Returns the value at the given position.
- Parameters
-
name | the name of the variable |
scopeList | the scope list to find the variable for |
◆ valueCount()
int edbee::DynamicVariables::valueCount |
( |
const QString & |
name | ) |
const |
returns the number of variable-rules/entries available with the given name
- Parameters
-
name | the name of the variable to retrieve the size for |
- Returns
- the number of variables entires with the given name
The documentation for this class was generated from the following files: