CCAFFEINE  0.8.8
PrinterComponent.h
00001 #ifndef __PRINTERCOMPONENT_H__
00002 #define __PRINTERCOMPONENT_H__
00003 
00004 /* requires
00005 //#include "parameters/parametersStar.h"
00006 //#include <cca.h>
00007 //#include "port/portInterfaces.h"
00008 //#include "dc/port/portStar.h"
00009 */
00010 
00011 /* 
00012 PrinterComponent
00013    provides one Port: StringConsumerPort.
00014    This will take the char* and print it on the local output stream.
00015 */
00016 class PrinterComponent: public virtual classic::gov::cca::Component, public virtual classic::gov::cca::StringConsumerPort {
00017 
00018 private:
00019   classic::gov::cca::Services* core;
00020 
00021 public:
00022 
00023   PrinterComponent(){ core = 0; }
00024 
00025   virtual ~PrinterComponent(){ core = 0; }
00026 
00027   virtual void setServices(classic::gov::cca::Services *cc);
00028 
00030   virtual void setString(const char* s);
00031 
00032 };
00033 #endif // __PRINTERCOMPONENT_H__