ProvidesConcatParmsSkel.C



#include "ProvidesConcatParmsSkel.h"
#include < hpcxx.h >
#include "../PORTS_REGISTRATION_ID.h"
#include "../../ccacore/RegisterType.h"

bool ProvidesConcatParmsSkel::registerFlag = false;

ProvidesConcatParmsSkel::ProvidesConcatParmsSkel(Port *executingPort): PortSkel(executingPort) {}

int ProvidesConcatParmsSkel :: sendConcatParms(ConcatParms concatParms) {
  ProvidesConcatParms *port = dynamic_cast(portPointer);
  ConcatParms *ms = new ConcatParms(concatParms);
  int result = port->sendString(ms);
  return result;
}

int ProvidesConcatParmsSkel :: start() {
  ProvidesConcatParms *port = dynamic_cast(portPointer);
  int result = port->start();
  return result;
}

int ProvidesConcatParmsSkel :: stop() {
  ProvidesConcatParms *port = dynamic_cast(portPointer);
  int result = port->stop();
  return result;
}

int ProvidesConcatParmsSkel :: kill() {
  ProvidesConcatParms *port = dynamic_cast(portPointer);
  int result = port->kill();
  return result;
}



void ProvidesConcatParmsSkel::registerSelf () {
  if (!registerFlag) {
    registerFlag = true;
    hpcxx_registerClass((ProvidesConcatParmsSkel *)NULL);
    hpcxx_register(&ProvidesConcatParmsSkel::notify, SEND_CONCAT_PARMS_ID);
    hpcxx_register(&ProvidesConcatParmsSkel::start, CONCAT_PARMS_START_ID);
    hpcxx_register(&ProvidesConcatParmsSkel::stop, CONCAT_PARMS_STOP_ID);
    hpcxx_register(&ProvidesConcatParmsSkel::kill, CONCAT_PARMS_KILL_ID);
    registerProvidesPortType("ConcatParms_idl", *(new ProvidesConcatParmsSkel(NULL)));
  }
}

// these methods will not be called
// we never move skels around.
void hpcxx_pack(HPCxx_Buffer& b, ProvidesConcatParmsSkel* p, int count){}
void hpcxx_unpack(HPCxx_Buffer& b, ProvidesConcatParmsSkel* p, int count){}

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