ProvidesMyStringSkel.h

// -*-c++-*-
#ifndef PROVIDES_MY_STRING_SKEL_H__
#define PROVIDES_MY_STRING_SKEL_H__

#include "../../ccacore/Port.h"
#include "../../ccacore/UsesPort.h"
#include "../../ccacore/ProvidesPort.h"
#include "../../ccacore/PortSkelUses.h"
#include "../../ccacore/PortSkel.h"
#include "../../exceptions/AlreadyRegisteredException.h"
#include "../../exceptions/NotRegisteredException.h"
#include "../../util/MyHPCxx_GlobalPtr.h"
#include "ProvidesMyString.h"
#include "UsesMyString.h"
#include "MyString_idl.h"
#include "MyString.h"
#include "../PORTS_REGISTRATION_ID.h"
#include < iostream.h >
#include < string >


class ProvidesMyStringSkel: public PortSkel {
public:
  ProvidesMyStringSkel(Port *executingPort);
  static int registrationID() { return PROVIDES_MY_STRING_SKEL_ID; }
  int sendMyString(MyString myString);

  // port registration
  static void registerSelf ();

private:
  static bool registerFlag;  
};

// These packs are never called because we don't move skels.
void hpcxx_pack(HPCxx_Buffer& b, ProvidesMyStringSkel* p, int count);
void hpcxx_unpack(HPCxx_Buffer& b, ProvidesMyStringSkel* p, int count);
void registerMyStringPorts();

#endif // _PROVIDES_MY_STRING_SKEL_H__

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