trikRuntime
trikControl::ConfigurerHelper Class Reference

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 &parameterName)
 Reads integer parameter from configurer, modifies device state. More...
 
static qreal configureReal (const trikKernel::Configurer &configurer, DeviceState &state, const QString &port, const QString &parameterName)
 Reads real parameter from configurer, modifies device state. More...
 

Detailed Description

Member Function Documentation

int ConfigurerHelper::configureInt ( const trikKernel::Configurer configurer,
DeviceState state,
const QString &  port,
const QString &  parameterName 
)
static

Reads integer parameter from configurer, modifies device state.

Returns 0 if parameter is incorrect.

Parameters
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.
qreal ConfigurerHelper::configureReal ( const trikKernel::Configurer configurer,
DeviceState state,
const QString &  port,
const QString &  parameterName 
)
static

Reads real parameter from configurer, modifies device state.

Returns 0.0 if parameter is incorrect.

Parameters
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.

The documentation for this class was generated from the following files: