|
virtual DeviceType | type () const =0 |
|
DeviceId | uid () const |
| Get the address of device. More...
|
|
virtual std::future< std::set< std::string > > | listConfig () const |
| list device configuration options
|
|
virtual std::future< std::string > | getConfig (const std::string &name) const |
| get device configuration value More...
|
|
virtual std::future< void > | setConfig (const std::string &name, const std::string &value) const |
| set device configuration value More...
|
|
virtual bool | canConvert (const units::Value &value, units::unit_t unit) const |
| Check if unit conversion is possible in a manner specific to this device. More...
|
|
virtual bool | convert (units::Value &value, units::unit_t unit) const |
| Convert value in a manner specific to this device. More...
|
|
std::string | toString () const |
| debug and logging operation
|
|
|
| DeviceBase (const std::string &uid) |
| Construct a new ABaseDevice, linking pointer to platform object. More...
|
|
Definition at line 88 of file DeviceBase.hpp.
◆ DeviceBase()
DeviceBase::DeviceBase |
( |
const std::string & |
uid | ) |
|
|
protected |
Construct a new ABaseDevice, linking pointer to platform object.
- Parameters
-
address | Address of the device. |
Definition at line 74 of file DeviceBase.cpp.
◆ canConvert()
bool DeviceBase::canConvert |
( |
const units::Value & |
value, |
|
|
units::unit_t |
unit |
|
) |
| const |
|
virtual |
◆ convert()
bool DeviceBase::convert |
( |
units::Value & |
value, |
|
|
units::unit_t |
unit |
|
) |
| const |
|
virtual |
◆ getConfig()
std::future< std::string > DeviceBase::getConfig |
( |
const std::string & |
name | ) |
const |
|
virtual |
◆ setConfig()
std::future< void > DeviceBase::setConfig |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| const |
|
virtual |
◆ uid()
std::string DeviceBase::uid |
( |
| ) |
const |
Get the address of device.
- Returns
- std::string Address of device
Definition at line 76 of file DeviceBase.cpp.
◆ updateSignal
ccut::Signal<const DeviceBase::Shared &> smc::DeviceBase::updateSignal |
device update signal
this signal is emitted whenever device's cached state is updated
Definition at line 155 of file DeviceBase.hpp.
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/device/DeviceBase.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/device/DeviceBase.cpp