Updated Rules for adding new device types (markdown)

Uwe Seimet 2022-02-09 16:11:26 +01:00
parent 71cd747ea9
commit 4cffb3455e

@ -1,9 +1,9 @@
Before adding a new device check that non of the existing devices is appropriate. Before adding a new device check that none of the existing types is appropriate.
Steps for adding a new device: Steps for adding a new device type:
1. Add the device type to the PbDeviceType enum of the protobuf definition 1. Add the device type to the PbDeviceType enum of the protobuf definition,
2. Add code for creating your device to the DeviceFactory class. The device instance and all devices-specific properties have to be created by this class. 2. Add code for creating the device type to the DeviceFactory class. The device instance and all devices-specific properties have to be created by this class.
3. Add code handle the device properties to the RascsiReponse class. 3. Add code to handle (return) the device type properties to the RascsiReponse class.
4. Add the device-specific implementation in new .cpp/.h files. 4. Add the device-type specific implementation in new .cpp/.h files.
5. Update the manpages. 5. Update the manpages.