00001 #ifndef CUSTODYTIMER_H_ 00002 #define CUSTODYTIMER_H_ 00003 00004 #include "data/Bundle.h" 00005 #include "core/Node.h" 00006 00007 using namespace dtn::data; 00008 00009 namespace dtn 00010 { 00011 namespace core 00012 { 00013 class CustodyTimer 00014 { 00015 public: 00019 CustodyTimer(); 00020 00024 CustodyTimer(const Bundle &bundle, unsigned int timeout, unsigned int attempt); 00025 00029 ~CustodyTimer(); 00030 00031 unsigned int getTime() const; 00032 00033 const Bundle& getBundle() const; 00034 00035 unsigned int getAttempt() const; 00036 00037 private: 00038 Bundle m_bundle; 00039 unsigned int m_time; 00040 unsigned int m_attempt; 00041 }; 00042 } 00043 } 00044 00045 #endif /*CUSTODYTIMER_H_*/
1.5.6