Alarm expiration handler. More...
#include <Alarm.h>
Public Member Functions | |
| ExpirationHandler (const std::string &name="") | |
| Constructor. | |
| virtual | ~ExpirationHandler () |
| Destructor. | |
| virtual void | handle_timeout ()=0 |
| Method to invoke when associated alarm expires. | |
| const char * | name () |
| Accessor. | |
| void | set_name (const char *name) |
| Mutator. | |
Protected Attributes | |
| std::string | name_ |
Alarm expiration handler.
Definition at line 31 of file Alarm.h.
| prophet::ExpirationHandler::ExpirationHandler | ( | const std::string & | name = "" |
) | [inline] |
| virtual prophet::ExpirationHandler::~ExpirationHandler | ( | ) | [inline, virtual] |
| virtual void prophet::ExpirationHandler::handle_timeout | ( | ) | [pure virtual] |
Method to invoke when associated alarm expires.
Implemented in prophet::Controller, and prophet::Encounter.
Referenced by prophet::Alarm::timeout().
| const char* prophet::ExpirationHandler::name | ( | ) | [inline] |
Accessor.
Definition at line 53 of file Alarm.h.
References name_.
Referenced by dtn::ProphetBundleCore::create_alarm(), and prophet::Encounter::Encounter().
| void prophet::ExpirationHandler::set_name | ( | const char * | name | ) | [inline] |
Mutator.
Definition at line 58 of file Alarm.h.
References name_.
Referenced by prophet::Encounter::Encounter().
std::string prophet::ExpirationHandler::name_ [protected] |
Definition at line 61 of file Alarm.h.
Referenced by name(), and set_name().
1.6.3