Implement the device class as a base class with get_type() no longer being a virtual function. Renamed get_type() to get_plugged_type() for clarity, as get_type() now makes a registry call to get the device type plugged into the port associated with a given Device object.
Removed get_type() from children of the device class.
Implemented changes (based on Ryan Doan's PR) to vdml.h and registry.h to define v5_device_e_t
Motivation:
Allows for users to dynamically find out the type of device that is plugged in.
References:
Closes #527
Test Plan:
[x] Connect device to port and initialize a device object for it.
[x] Call get_plugged_type() on that device.
[x] Check that device enum is what is expected.
[x] Plug in different device while still running and check that device enum changes to correctly display the new connected device.
Summary:
Implement the device class as a base class with get_type() no longer being a virtual function. Renamed get_type() to get_plugged_type() for clarity, as get_type() now makes a registry call to get the device type plugged into the port associated with a given Device object.
Removed get_type() from children of the device class.
Implemented changes (based on Ryan Doan's PR) to vdml.h and registry.h to define v5_device_e_t
Motivation:
Allows for users to dynamically find out the type of device that is plugged in.
References:
Closes #527
Test Plan: