IBR-DTNSuite  0.10
dtn::routing::StaticRouteChangeEvent Class Reference

#include <StaticRouteChangeEvent.h>

Inheritance diagram for dtn::routing::StaticRouteChangeEvent:
Inheritance graph
Collaboration diagram for dtn::routing::StaticRouteChangeEvent:
Collaboration graph

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)
 

Detailed Description

Definition at line 33 of file StaticRouteChangeEvent.h.

Member Enumeration Documentation

Enumerator
ROUTE_ADD 
ROUTE_DEL 
ROUTE_EXPIRED 
ROUTE_CLEAR 

Definition at line 36 of file StaticRouteChangeEvent.h.

Constructor & Destructor Documentation

dtn::routing::StaticRouteChangeEvent::~StaticRouteChangeEvent ( )
virtual

Definition at line 45 of file StaticRouteChangeEvent.cpp.

Member Function Documentation

std::string dtn::routing::StaticRouteChangeEvent::getMessage ( ) const
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.

Here is the call graph for this function:

const std::string dtn::routing::StaticRouteChangeEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 49 of file StaticRouteChangeEvent.cpp.

References className.

void dtn::routing::StaticRouteChangeEvent::raiseEvent ( CHANGE_TYPE  type)
static
void dtn::routing::StaticRouteChangeEvent::raiseEvent ( CHANGE_TYPE  type,
const dtn::data::EID nexthop,
const std::string &  pattern,
const dtn::data::Number timeout = 0 
)
static

Definition at line 108 of file StaticRouteChangeEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Here is the call graph for this function:

void dtn::routing::StaticRouteChangeEvent::raiseEvent ( CHANGE_TYPE  type,
const dtn::data::EID nexthop,
const dtn::data::EID destination,
const dtn::data::Number timeout = 0 
)
static

Definition at line 113 of file StaticRouteChangeEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Here is the call graph for this function:

Member Data Documentation

const string dtn::routing::StaticRouteChangeEvent::className = "StaticRouteChangeEvent"
static

Definition at line 60 of file StaticRouteChangeEvent.h.

Referenced by getName().

const dtn::data::EID dtn::routing::StaticRouteChangeEvent::destination
const dtn::data::EID dtn::routing::StaticRouteChangeEvent::nexthop
const std::string dtn::routing::StaticRouteChangeEvent::pattern
dtn::data::Number dtn::routing::StaticRouteChangeEvent::timeout
CHANGE_TYPE dtn::routing::StaticRouteChangeEvent::type

The documentation for this class was generated from the following files: