IBR-DTNSuite
0.10
|
#include <StaticRouteChangeEvent.h>
Public Types | |
enum | CHANGE_TYPE { ROUTE_ADD = 0, ROUTE_DEL = 1, ROUTE_EXPIRED = 2, ROUTE_CLEAR = 3 } |
Public Member Functions | |
virtual | ~StaticRouteChangeEvent () |
const std::string | getName () const |
std::string | getMessage () const |
Public Member Functions inherited from dtn::core::Event | |
virtual | ~Event ()=0 |
virtual std::string | toString () const |
bool | isLoggable () const |
Static Public Member Functions | |
static void | raiseEvent (CHANGE_TYPE type) |
static void | raiseEvent (CHANGE_TYPE type, const dtn::data::EID &nexthop, const std::string &pattern, const dtn::data::Number &timeout=0) |
static void | raiseEvent (CHANGE_TYPE type, const dtn::data::EID &nexthop, const dtn::data::EID &destination, const dtn::data::Number &timeout=0) |
Public Attributes | |
CHANGE_TYPE | type |
const dtn::data::EID | nexthop |
const dtn::data::EID | destination |
const std::string | pattern |
dtn::data::Number | timeout |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Static Public Attributes | |
static const std::string | className = "StaticRouteChangeEvent" |
Additional Inherited Members | |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 33 of file StaticRouteChangeEvent.h.
Enumerator | |
---|---|
ROUTE_ADD | |
ROUTE_DEL | |
ROUTE_EXPIRED | |
ROUTE_CLEAR |
Definition at line 36 of file StaticRouteChangeEvent.h.
|
virtual |
Definition at line 45 of file StaticRouteChangeEvent.cpp.
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 54 of file StaticRouteChangeEvent.cpp.
References destination, dtn::data::EID::getString(), nexthop, pattern, ROUTE_ADD, ROUTE_CLEAR, ROUTE_DEL, ROUTE_EXPIRED, timeout, dtn::data::SDNV< E >::toString(), and type.
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 49 of file StaticRouteChangeEvent.cpp.
References className.
|
static |
Definition at line 103 of file StaticRouteChangeEvent.cpp.
References dtn::core::EventDispatcher< E >::raise().
Referenced by dtn::core::BundleCore::addRoute(), dtn::core::BundleCore::removeRoute(), and dtn::routing::StaticRoutingExtension::run().
|
static |
Definition at line 108 of file StaticRouteChangeEvent.cpp.
References dtn::core::EventDispatcher< E >::raise().
|
static |
Definition at line 113 of file StaticRouteChangeEvent.cpp.
References dtn::core::EventDispatcher< E >::raise().
|
static |
Definition at line 60 of file StaticRouteChangeEvent.h.
Referenced by getName().
const dtn::data::EID dtn::routing::StaticRouteChangeEvent::destination |
Definition at line 56 of file StaticRouteChangeEvent.h.
Referenced by getMessage(), and dtn::routing::StaticRoutingExtension::notify().
const dtn::data::EID dtn::routing::StaticRouteChangeEvent::nexthop |
Definition at line 55 of file StaticRouteChangeEvent.h.
Referenced by getMessage(), and dtn::routing::StaticRoutingExtension::notify().
const std::string dtn::routing::StaticRouteChangeEvent::pattern |
Definition at line 57 of file StaticRouteChangeEvent.h.
Referenced by getMessage(), and dtn::routing::StaticRoutingExtension::notify().
dtn::data::Number dtn::routing::StaticRouteChangeEvent::timeout |
Definition at line 58 of file StaticRouteChangeEvent.h.
Referenced by getMessage(), and dtn::routing::StaticRoutingExtension::notify().
CHANGE_TYPE dtn::routing::StaticRouteChangeEvent::type |
Definition at line 54 of file StaticRouteChangeEvent.h.
Referenced by getMessage(), and dtn::routing::StaticRoutingExtension::notify().