#include <cca.h>
#include <stdPorts.h>           // for GoPort and other well-known ports.

#include "LinearFunction_CCA.h"
#include "LinearFunction_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_LinearFunction ()
  {
    gov::cca::Component * wrapper;
    functions::ccaimpl::LinearFunction * component;
    component = new functions::ccaimpl::LinearFunction ();
    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_LinearFunction LinearFunction";
    list[1] = 0;
    return list;
  }
};