|
OpenCPN Partial API docs
|
The global driver registry, a singleton. More...
#include <comm_drv_registry.h>
Public Member Functions | |
| void | Activate (DriverPtr driver) |
| Add driver to list of active drivers. | |
| void | Deactivate (DriverPtr driver) |
| Remove driver from list of active drivers. | |
| void | CloseAllDrivers () |
| Close and destroy all drivers completely. | |
| const std::vector< DriverPtr > & | GetDrivers () |
Static Public Member Functions | |
| static CommDriverRegistry & | GetInstance () |
Public Attributes | |
| EventVar | evt_driverlist_change |
| Notified by all driverlist updates. | |
| EventVar | evt_dump_stats |
| Notified when receiving –remote –dump_stat on local API. | |
| EventVar | evt_comm_overrun |
| Notified with a printable message on first detected overrun. | |
| EventVar | evt_driver_msg |
| Notified for messages from drivers. More... | |
The global driver registry, a singleton.
Drivers register here when activated, transport layer finds them.
Also used as exchange point for messages for USB devices hotplug events.
Definition at line 40 of file comm_drv_registry.h.
| const std::vector< DriverPtr > & CommDriverRegistry::GetDrivers | ( | ) |
Definition at line 52 of file comm_drv_registry.cpp.
| EventVar CommDriverRegistry::evt_driver_msg |
Notified for messages from drivers.
The generated event contains:
Definition at line 71 of file comm_drv_registry.h.