Template for ConcatComponent.h
#ifndef CCAT_CONCAT_COMPONENT_H
#define CCAT_CONCAT_COMPONENT_H
#include "../../../../framework/ccacore/Component.h"
// forward declarations
// prevents code bloat
class Services;
class ConcatParms;
// This inheritance structure **has** to be followed
// lest death and destruction shall rain on you
class ConcatComponent : public Component {
public:
ConcatComponent();
virtual ~ConcatComponent();
void setServices(Services *cc);
private:
// You may want to have a method with this signature
void startComputation(ConcatParms *);
private:
// You must have a private pointer to the Services object
Services *m_core;
// You should ideally have a pointer to the provides port
// implementation
MyStringPort_impl *m_myStringPort;
// You may want to have a pointer to the paramter object
// that you will recieve in your implementation of the
// provided port
ConcatParms_impl *m_concatParmsPort;
// You may want to have some boolean variables to
// control the flow of execution, especially if
// your code is threaded. I don't see any urgent
// need to use threads for this contrived example
// though.
bool m_computing;
bool m_stopped;
};
#endif
Back to CCA Compliant HPC++
based CCAT Components
mgovinda@cs.indiana.edu
Last modified: Tue Jan 25 16:19:50 EST 2000