CCAFFEINE  0.8.8
TimeStamper.h
00001 #ifndef __TIMESTAMPSTRING_H__
00002 #define __TIMESTAMPSTRING_H__
00003 
00004 /* 
00005    this is a portable component.  there is nothing here
00006    that relates to any specific framework
00007    it has the following ports:
00008       uses:
00009         StringConsumerPort, Timer
00010       provides:
00011         StringConsumerPort
00012 */
00013 class TimeStamper: public virtual classic::gov::cca::Component, public virtual classic::gov::cca::StringConsumerPort, public virtual ParameterGetListener {
00014 
00015 public:
00016 
00017                    
00018   TimeStamper();
00019   virtual ~TimeStamper();
00020 
00021   virtual bool updateParameterPort(ConfigurableParameterPort *dpp);
00022 
00023   virtual void setServices(classic::gov::cca::Services *cc);
00024 
00025    
00026   virtual void setString(const char* s);
00027 
00028 private:
00029   classic::gov::cca::Services* core;
00030   ConfigurableParameterPort *pp;
00031   StringParameter *prefix;
00032   BoolParameter *commie;
00033   BoolParameter *utest;
00034   DoubleParameter *dtest;
00035   StringParameter *anything;
00036   bool utestdone;
00037 
00038   void setupParameters(ConfigurableParameterFactory *cpf);
00039 };
00040 
00041 #endif // __TIMESTAMPSTRING_H__