|
roo_transceivers
API Documentation for roo_transceivers
|
Persistent binding of a sensor key to a locator. More...
#include <binding.h>
Public Member Functions | |
| SensorBinding (BindingStore &store, BindingStore::SensorKey key) | |
| SensorLocator | get () const |
| Returns the bound locator (empty if unbound). | |
| bool | isBound () const |
| Returns true when a locator is bound. | |
| void | bind (const SensorLocator &loc) |
| Binds to the specified locator (or unbinds when undefined). | |
| void | unbind () |
| Clears the binding. | |
Friends | |
| roo_logging::Stream & | operator<< (roo_logging::Stream &os, const SensorBinding &binding) |
|
inline |
|
inline |
Binds to the specified locator (or unbinds when undefined).
Definition at line 31 of file binding.h.
References roo_transceivers::BindingStore::clearSensorBinding(), roo_transceivers::SensorLocator::isDefined(), and roo_transceivers::BindingStore::setSensorBinding().
|
inline |
Returns the bound locator (empty if unbound).
Definition at line 19 of file binding.h.
Referenced by roo_transceivers::BoundSensor::read().
|
inline |
Returns true when a locator is bound.
Definition at line 25 of file binding.h.
References roo_transceivers::SensorLocator::isDefined().
|
inline |
Clears the binding.
Definition at line 43 of file binding.h.
References roo_transceivers::BindingStore::clearSensorBinding().
|
friend |
Definition at line 5 of file binding.cpp.