ConcatComponentHome.C


#include "ConcatComponentHome.h"
#include "../../../../framework/idl/myString/ProvidesMyStringSkel.h"
#include "../../../../framework/idl/solutionVector/UsesMyStringSkel.h"
#include "../../../../framework/idl/concatParms/ProvidesConcatParmsSkel.h"
#include "../../../../framework/creation/ComponentFactory.h"

bool ConcatComponentHome::initFlag = false;

ConcatComponent* ConcatComponentHome::instantiate() {
  init();
  return new ConcatComponent();
}

void ConcatComponentHome::init() {

  cout << "ConcatComponentHome::init()\n" << flush;

  ProvidesMyStringSkel::registerSelf();
  ProvidesSolutionVectorSkel::registerSelf();
  ProvidesConcatParmsSkel::registerSelf();
  
  // registering the component itself
  if (!initFlag) {
    cout << "ConcatComponentHome: registering Concat component\n" << flush;
    initFlag = true;
    myString compName("MyConcatComponent");
    ConcatComponent *dummyComp = 0;
    ConcatComponentHome *dummyHome = 0;
    registerComponentType(compName, dummyComp, dummyHome);
  }
}

Back to CCA Compliant HPC++ based CCAT Components
mgovinda@cs.indiana.edu
Last modified: Tue Jan 25 15:16:15 EST 2000