Bochs/bochs-testing/plugin-test/test10-modvirtual
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
..
main.cc - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
main.h - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
Makefile.in - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
module1.cc - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
module2.cc - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
modules.h - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
README - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00
uselib.out.expected - add test10 in which each module creates its own child class of 2002-10-16 14:45:32 +00:00

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.