00001 /* 00002 * TestApplication.h 00003 * 00004 * Created on: 06.03.2009 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef TESTAPPLICATION_H_ 00009 #define TESTAPPLICATION_H_ 00010 00011 #include "core/AbstractWorker.h" 00012 #include "utils/Service.h" 00013 00014 using namespace dtn::utils; 00015 using namespace dtn::core; 00016 00017 namespace dtn 00018 { 00019 namespace daemon 00020 { 00028 class TestApplication : public AbstractWorker, public Service 00029 { 00030 public: 00031 TestApplication(string destination) 00032 : AbstractWorker("/test"), Service("TestApplication"), m_dtntime(0), m_destination(destination) {} 00033 ~TestApplication() {}; 00034 void tick(); 00035 00036 TransmitReport callbackBundleReceived(const Bundle &b); 00037 00038 private: 00039 void reportIt(); 00040 unsigned int m_dtntime; 00041 string m_destination; 00042 }; 00043 } 00044 } 00045 00046 #endif /* TESTAPPLICATION_H_ */
1.5.6