#include <cca.h> #include <stdPorts.h> // for GoPort and other well-known ports. #include "Driver_CCA.h" #include "Driver_CCA_wrapper.h" extern "C" { // We need a C wrapper to get dynamic loading to work. // Here's our NULL constructor wrapped in C. gov::cca::Component * create_Driver () { gov::cca::Component * wrapper; Driver *component; component = new Driver (); wrapper = dynamic_cast < gov::cca::Component * >(component); return wrapper; } // See dccafe/cxx/dc/framework/ComponentFactory.h for details. // More sophisticated repository interfaces would supplant this. char **getComponentList () { static char *list[2]; list[0] = "create_Driver Driver"; list[1] = 0; return list; } };