A demo of encapsulation of the device model was shown in #52. The next step is to change the concrete classes (RM3DeviceModel) into class folders. This allows the concrete methods which define the device to be added as separate function files within the class folder.
This is nice because you won't need to worry about working with classes to make another device, you just need to build the folder, add the class header and then add the implementation of the static methods as correctly named functions.
For instance, for RM3DeviceModel, this would look something like:
A demo of encapsulation of the device model was shown in #52. The next step is to change the concrete classes (RM3DeviceModel) into class folders. This allows the concrete methods which define the device to be added as separate function files within the class folder.
This is nice because you won't need to worry about working with classes to make another device, you just need to build the folder, add the class header and then add the implementation of the static methods as correctly named functions.
For instance, for RM3DeviceModel, this would look something like: