CCAFFEINE
0.8.8
|
00001 #ifndef __REVALIDATETEST_H__ 00002 #define __REVALIDATETEST_H__ 00003 00004 /* 00005 This is a portable component. there is nothing here 00006 that relates to any specific framework, or any useful task. 00007 it has the following ports: 00008 uses: 00009 "timer out" -- type: "Time_idl" 00010 "my output string" -- type: "String_idl" 00011 privides: 00012 "my input string" -- type: "String_idl" 00013 */ 00014 class RevalidateTest: public virtual classic::gov::cca::Component, public virtual classic::gov::cca::StringConsumerPort, public virtual ParameterGetListener, public virtual classic::gov::cca::ConnectionEventListener { 00015 00016 public: 00017 00018 classic::gov::cca::Services* core; 00019 // UsesString_idlPort *output; 00020 // UsesTime_idlPort *timer; 00021 public: 00022 RevalidateTest(); 00023 virtual ~RevalidateTest(); 00024 00028 virtual void connectionActivity(classic::gov::cca::ConnectionEvent* evt); 00029 00030 bool updateParameterPort(ConfigurableParameterPort *dpp); 00031 00032 void setServices(classic::gov::cca::Services *cc); 00033 00034 virtual void setString(const char* s); 00035 00036 private: 00037 classic::gov::cca::JPrintfPort *pfp; 00038 ConfigurableParameterPort *pp; 00039 StringParameter *prefix; 00040 BoolParameter *commie; 00041 BoolParameter *utest; 00042 DoubleParameter *dtest; 00043 StringParameter *anything; 00044 bool utestdone; 00046 bool alreadyRemoved; 00048 classic::gov::cca::ConnectionEventService* eSvc; 00049 void setupParameters(ConfigurableParameterFactory *cpf); 00050 }; 00051 00052 #endif // __REVALIDATETEST_H__