/* * FunctionCore.h * * Created on: 18 May 2016 * Author: wentzelc */ #ifndef REDACORE_FUNCTIONCORE_H_ #define REDACORE_FUNCTIONCORE_H_ // redA Libraries #include "BufferCore.h" // Standard C/C++ Libraries #include //--------------------------------------------------------------------------- class CFunctionCore { protected: // Function Definition char * Name; CFunctionCore * OutFunction; public: // Life cycle CFunctionCore( const char * ObjectName ); virtual ~CFunctionCore(); // Manual Data Input/Output virtual int Input( int InputID, const char * Buffer, int MaxLen ); virtual int Output( int OutputID, const char * Buffer, int Len ); // Automated Data Input/Output virtual bool AddInput( int InputID, CFunctionCore * OutFunction, int OutputID ); virtual bool AddOutput( int OutputID, CFunctionCore * InFunction, int InputID ); virtual bool Process() = 0; }; //--------------------------------------------------------------------------- #endif /* REDACORE_FUNCTIONCORE_H_ */