IO::RFSwitch::Device::Factory Class Reference
#include <Device.h>
Inheritance diagram for IO::RFSwitch::Device::Factory:
Collaboration diagram for IO::RFSwitch::Device::Factory:
Public Member Functions | |
IO::Device * | createDevice (IO::Controller &controller, const char *id) const override |
Create a new device instance. More... | |
const FlashString & | controllerClass () const override |
Return the expected controller type for this device class, e.g. 'rs485'. More... | |
const FlashString & | deviceClass () const override |
Return the Device class name, e.g. 'r421a'. More... | |
![]() | |
bool | operator== (const String &className) const |
Member Function Documentation
◆ controllerClass()
|
inlineoverridevirtual |
Return the expected controller type for this device class, e.g. 'rs485'.
The Device Manager uses this value to verify that devices are constructed using the correct controller.
Implements IO::Device::Factory.
◆ createDevice()
|
inlineoverridevirtual |
Create a new device instance.
- Parameters
-
controller The owning controller id Unique identifier for the device
- Return values
-
Device* The constructed instance
Called by DeviceManager::createDevice()
Implements IO::Device::Factory.
◆ deviceClass()
|
inlineoverridevirtual |
Return the Device class name, e.g. 'r421a'.
Implements IO::Device::Factory.
The documentation for this class was generated from the following file: