#include <driverExtension.h>
Protected Member Functions | |
DriverExtension (const std::string &driverName, const std::string &name) | |
Registers the driver extension and associates it with a specified driver. | |
virtual void | doInit (Driver &driver)=0 |
Extension initialization routine. | |
std::string & | getDriverName () |
Returns name of the associated driver. | |
std::string & | getName () |
Returns name of this feature. |
Driver extensions provide additional functionalities to drivers.
iopc::DriverExtension::DriverExtension | ( | const std::string & | driverName, | |
const std::string & | name | |||
) | [protected] |
Registers the driver extension and associates it with a specified driver.
driverName | The driver associated with this extension | |
name | Name of this extension. The name must be unique across all extensions of the same driver. |
virtual void iopc::DriverExtension::doInit | ( | Driver & | driver | ) | [protected, pure virtual] |
Extension initialization routine.
Usually it registers additional features to the driver by calling:
driver.registerFeature<Feature>(featureImpl);
driver | The driver associated with this feature |