UsesMyStringSkel.h


// -*-c++-*-

#ifndef _USES_MY_STRING_SKEL_H__
#define _USES_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 "../PORTS_REGISTRATION_ID.h"
#include < iostream.h >
#include < string >


class UsesMyStringPortSkel: public UsesMyStringPort {
public:
  UsesMyStringPortSkel(): UsesMyStringPort() {}
  UsesMyStringPortSkel(Port *): UsesMyStringPort() {}
  
  // these are local method invocations
  int sendMyString(MyString *myString);
  friend void hpcxx_pack(HPCxx_Buffer& b, UsesMyStringPortSkel* p, int count);
  friend void hpcxx_unpack(HPCxx_Buffer& b, UsesMyStringPortSkel* p, int count);

  // port registration
  static void registerSelf ();

private:
  static bool registerFlag;  
};

#endif // _USES_MY_STRING_SKEL_H__



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