IBR-DTNSuite
0.12
|
#include <Event.h>
Public Member Functions | |
virtual | ~Event ()=0 |
virtual const std::string | getName () const =0 |
virtual std::string | toString () const |
virtual std::string | getMessage () const =0 |
bool | isLoggable () const |
Public Attributes | |
const int | prio |
Protected Member Functions | |
Event (int prio=0) | |
void | setLoggable (bool val) |
|
pure virtual |
Get a describing message for this event
Implemented in dtn::core::BundleEvent, dtn::core::GlobalEvent, dtn::core::NodeEvent, dtn::net::TransferAbortedEvent, dtn::core::CustodyEvent, dtn::core::TimeEvent, dtn::net::ConnectionEvent, dtn::routing::StaticRouteChangeEvent, dtn::core::BundlePurgeEvent, dtn::routing::NodeHandshakeEvent, dtn::core::BundleExpiredEvent, dtn::net::BundleReceivedEvent, dtn::routing::QueueBundleEvent, dtn::net::TransferCompletedEvent, dtn::routing::RequeueBundleEvent, dtn::core::BundleGeneratedEvent, dtn::net::P2PDialupEvent, and dtn::core::TimeAdjustmentEvent.
Referenced by toString().
|
pure virtual |
Get the name of this event.
Implemented in dtn::core::BundleEvent, dtn::core::GlobalEvent, dtn::core::NodeEvent, dtn::net::TransferAbortedEvent, dtn::core::CustodyEvent, dtn::net::ConnectionEvent, dtn::routing::StaticRouteChangeEvent, dtn::core::BundlePurgeEvent, dtn::core::TimeEvent, dtn::routing::NodeHandshakeEvent, dtn::core::BundleExpiredEvent, dtn::net::BundleReceivedEvent, dtn::routing::QueueBundleEvent, dtn::net::TransferCompletedEvent, dtn::routing::RequeueBundleEvent, dtn::core::BundleGeneratedEvent, dtn::net::P2PDialupEvent, and dtn::core::TimeAdjustmentEvent.
Referenced by toString().
bool dtn::core::Event::isLoggable | ( | ) | const |
|
virtual |
Get a string representation of this event.
Definition at line 41 of file Event.cpp.
References getMessage(), and getName().
const int dtn::core::Event::prio |
Contains the priority of this event.
Definition at line 60 of file Event.h.
Referenced by dtn::core::EventSwitch::queue().