The newly refactored driver is using an Event-Based messaging scheme, which helps to decouple the Driver from the rest of the program. I have thought ahead and made modifications to the old driver to allow it to use this new interface just in case the refactored driver does not work correctly. I have functionality to handle the events creation etc, so they are really easy to use.
To manage this API and the starting and stopping of the drivers, I have written a class which handles loading all of the drivers, intializing events for each one, and also inserting and removing them from subpanels. The class is called AFM_Driver_Manager.
The newly refactored driver is using an Event-Based messaging scheme, which helps to decouple the Driver from the rest of the program. I have thought ahead and made modifications to the old driver to allow it to use this new interface just in case the refactored driver does not work correctly. I have functionality to handle the events creation etc, so they are really easy to use.
To manage this API and the starting and stopping of the drivers, I have written a class which handles loading all of the drivers, intializing events for each one, and also inserting and removing them from subpanels. The class is called AFM_Driver_Manager.