|
trikRuntime
|
Helper for trikKernel::Configurer. More...
#include <configurerHelper.h>
Static Public Member Functions | |
| static int | configureInt (const trikKernel::Configurer &configurer, DeviceState &state, const QString &port, const QString ¶meterName) |
| Reads integer parameter from configurer, modifies device state. More... | |
| static qreal | configureReal (const trikKernel::Configurer &configurer, DeviceState &state, const QString &port, const QString ¶meterName) |
| Reads real parameter from configurer, modifies device state. More... | |
Helper for trikKernel::Configurer.
|
static |
Reads integer parameter from configurer, modifies device state.
Returns 0 if parameter is incorrect.
| configurer | - configurer object from which parameter will be read. |
| state | - reference to device state, will be set to "fail" if parameter can not be read correctly. |
| port | - port of a device. |
| parameterName | - name of a parameter to read. |
|
static |
Reads real parameter from configurer, modifies device state.
Returns 0.0 if parameter is incorrect.
| configurer | - configurer object from which parameter will be read. |
| state | - reference to device state, will be set to "fail" if parameter can not be read correctly. |
| port | - port of a device. |
| parameterName | - name of a parameter to read. |