Bochs/bochs-testing/plugin-test/test10-modvirtual/README
Bryce Denney 855e2007a0 - add test10 in which each module creates its own child class of
DeviceInterface, and the main code talks to the devices using
  virtual methods of Device Interface.
2002-10-16 14:45:32 +00:00

8 lines
382 B
Plaintext

test10-modvirtual
Create an interface class in modules.h called DeviceInterface. Each module
creates a child class of DeviceInterface, and implements its methods. This
test loads the modules, calls the module's module_init() which instantiates a
subclass of DeviceInterface and returns a pointer to it. Then main can call
operate on this object using the DeviceInterface class.