IBR-DTNSuite
0.8
|
#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 | toString () 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, size_t timeout=0) |
static void | raiseEvent (CHANGE_TYPE type, const dtn::data::EID &nexthop, const dtn::data::EID &destination, size_t timeout=0) |
Public Attributes | |
CHANGE_TYPE | type |
const dtn::data::EID | nexthop |
const dtn::data::EID | destination |
const std::string | pattern |
size_t | timeout |
Static Public Attributes | |
static const std::string | className = "StaticRouteChangeEvent" |
Definition at line 18 of file StaticRouteChangeEvent.h.
Definition at line 21 of file StaticRouteChangeEvent.h.
Definition at line 30 of file StaticRouteChangeEvent.cpp.
const std::string dtn::routing::StaticRouteChangeEvent::getName | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 34 of file StaticRouteChangeEvent.cpp.
References className.
Referenced by toString().
void dtn::routing::StaticRouteChangeEvent::raiseEvent | ( | CHANGE_TYPE | type | ) | [static] |
Definition at line 89 of file StaticRouteChangeEvent.cpp.
Referenced by raiseEvent(), and dtn::routing::StaticRoutingExtension::run().
void dtn::routing::StaticRouteChangeEvent::raiseEvent | ( | CHANGE_TYPE | type, |
const dtn::data::EID & | nexthop, | ||
const std::string | pattern, | ||
size_t | timeout = 0 |
||
) | [static] |
Definition at line 94 of file StaticRouteChangeEvent.cpp.
References raiseEvent().
void dtn::routing::StaticRouteChangeEvent::raiseEvent | ( | CHANGE_TYPE | type, |
const dtn::data::EID & | nexthop, | ||
const dtn::data::EID & | destination, | ||
size_t | timeout = 0 |
||
) | [static] |
Definition at line 99 of file StaticRouteChangeEvent.cpp.
References raiseEvent().
std::string dtn::routing::StaticRouteChangeEvent::toString | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 39 of file StaticRouteChangeEvent.cpp.
References destination, getName(), dtn::data::EID::getString(), nexthop, pattern, ROUTE_ADD, ROUTE_CLEAR, ROUTE_DEL, ROUTE_EXPIRED, timeout, and type.
const string dtn::routing::StaticRouteChangeEvent::className = "StaticRouteChangeEvent" [static] |
Definition at line 45 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::BaseRouter::componentDown(), dtn::routing::BaseRouter::componentUp(), and getName().
Definition at line 41 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), and toString().
Definition at line 40 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), and toString().
const std::string dtn::routing::StaticRouteChangeEvent::pattern |
Definition at line 42 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), and toString().
Definition at line 43 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), and toString().
Definition at line 39 of file StaticRouteChangeEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), and toString().