26#ifndef _COMMDRIVERREGISTRY_H__
27#define _COMMDRIVERREGISTRY_H__
29#include "comm_driver.h"
30#include "observable_evtvar.h"
39typedef std::shared_ptr<AbstractCommDriver> DriverPtr;
80 std::vector<DriverPtr> drivers;
87const DriverPtr FindDriver(
const std::vector<DriverPtr>& drivers,
88 const std::string& iface,
89 const NavAddr::Bus _bus = NavAddr::Bus::Undef);
Registry for active, running drivers.
EventVar evt_driver_msg
Notified for messages from drivers.
void Activate(DriverPtr driver)
Add driver to list of active drivers.
EventVar evt_driverlist_change
Notified by all driverlist updates.
void Deactivate(DriverPtr driver)
Remove driver from list of active drivers.
void CloseAllDrivers()
Close and destroy all drivers completely.
const std::vector< DriverPtr > & GetDrivers()
Generic event handling between between two parties like MVC Model and Controller using a shared Event...