Common interface for all drivers.
More...
#include <comm_driver.h>
|
virtual bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr)=0 |
|
virtual void | Activate ()=0 |
| Register driver in the driver Registry. More...
|
|
virtual void | SetListener (DriverListener &l) |
| Set the entity which will receive incoming data. More...
|
|
virtual std::pair< CommStatus, std::string > | Clone () |
| Create a new virtual interface using a new instance of this driver. More...
|
|
std::string | Key () const |
|
virtual std::unordered_map< std::string, std::string > | GetAttributes () const |
|
|
const NavAddr::Bus | bus |
|
const std::string | iface |
| Physical device for 0183, else a unique string. More...
|
|
std::unordered_map< std::string, std::string > | attributes |
|
Common interface for all drivers.
Definition at line 57 of file comm_driver.h.
◆ AbstractCommDriver() [1/3]
AbstractCommDriver::AbstractCommDriver |
( |
| ) |
|
|
inline |
◆ AbstractCommDriver() [2/3]
AbstractCommDriver::AbstractCommDriver |
( |
NavAddr::Bus |
b | ) |
|
|
inlineprotected |
◆ AbstractCommDriver() [3/3]
AbstractCommDriver::AbstractCommDriver |
( |
NavAddr::Bus |
b, |
|
|
const std::string & |
s |
|
) |
| |
|
inlineprotected |
◆ Activate()
virtual void AbstractCommDriver::Activate |
( |
| ) |
|
|
pure virtual |
◆ Clone()
virtual std::pair< CommStatus, std::string > AbstractCommDriver::Clone |
( |
| ) |
|
|
inlinevirtual |
Create a new virtual interface using a new instance of this driver.
A successful return guarantees that the new driver is registered in the device registry and activated.
- Returns
- <CommStatus::ok, interface> on success else <error_code, message>.
Definition at line 81 of file comm_driver.h.
◆ GetAttributes()
virtual std::unordered_map< std::string, std::string > AbstractCommDriver::GetAttributes |
( |
| ) |
const |
|
inlinevirtual |
◆ Key()
std::string AbstractCommDriver::Key |
( |
| ) |
const |
|
inline |
◆ SetListener()
◆ attributes
std::unordered_map<std::string, std::string> AbstractCommDriver::attributes |
◆ bus
const NavAddr::Bus AbstractCommDriver::bus |
◆ iface
const std::string AbstractCommDriver::iface |
Physical device for 0183, else a unique string.
Definition at line 89 of file comm_driver.h.
The documentation for this class was generated from the following file: