IBR-DTNSuite  0.12
dtn::routing::StaticRegexRoute Class Reference

#include <StaticRegexRoute.h>

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

Public Member Functions

 StaticRegexRoute (const std::string &regex, const dtn::data::EID &dest)
 
virtual ~StaticRegexRoute ()
 
bool match (const dtn::data::EID &eid) const
 
const dtn::data::EIDgetDestination () const
 
const dtn::data::TimestampgetExpiration () const
 
void raiseExpired () const
 
bool equals (const StaticRoute &route) const
 
 StaticRegexRoute (const StaticRegexRoute &obj)
 
StaticRegexRouteoperator= (const StaticRegexRoute &obj)
 
const std::string toString () const
 
- Public Member Functions inherited from dtn::routing::StaticRoute
virtual ~StaticRoute ()=0
 

Detailed Description

Definition at line 18 of file StaticRegexRoute.h.

Constructor & Destructor Documentation

dtn::routing::StaticRegexRoute::StaticRegexRoute ( const std::string &  regex,
const dtn::data::EID dest 
)
dtn::routing::StaticRegexRoute::~StaticRegexRoute ( )
virtual

Definition at line 27 of file StaticRegexRoute.cpp.

dtn::routing::StaticRegexRoute::StaticRegexRoute ( const StaticRegexRoute obj)

copy and assignment operators

Parameters
objThe object to copy
Returns

Definition at line 34 of file StaticRegexRoute.cpp.

Member Function Documentation

bool dtn::routing::StaticRegexRoute::equals ( const StaticRoute route) const
virtual

Compare this static route with another one

Implements dtn::routing::StaticRoute.

Definition at line 116 of file StaticRegexRoute.cpp.

const dtn::data::EID & dtn::routing::StaticRegexRoute::getDestination ( ) const
virtual

Implements dtn::routing::StaticRoute.

Definition at line 94 of file StaticRegexRoute.cpp.

const dtn::data::Timestamp & dtn::routing::StaticRegexRoute::getExpiration ( ) const
virtual

Implements dtn::routing::StaticRoute.

Definition at line 106 of file StaticRegexRoute.cpp.

bool dtn::routing::StaticRegexRoute::match ( const dtn::data::EID eid) const
virtual

Implements dtn::routing::StaticRoute.

Definition at line 66 of file StaticRegexRoute.cpp.

References ibrcommon::LogLevel::error, dtn::data::EID::getString(), IBRCOMMON_LOGGER_ENDL, and IBRCOMMON_LOGGER_TAG.

Here is the call graph for this function:

StaticRegexRoute & dtn::routing::StaticRegexRoute::operator= ( const StaticRegexRoute obj)
void dtn::routing::StaticRegexRoute::raiseExpired ( ) const
virtual

Raise the StaticRouteChangeEvent for expiration

Implements dtn::routing::StaticRoute.

Definition at line 111 of file StaticRegexRoute.cpp.

References dtn::routing::StaticRouteChangeEvent::raiseEvent(), and dtn::routing::StaticRouteChangeEvent::ROUTE_EXPIRED.

Here is the call graph for this function:

const std::string dtn::routing::StaticRegexRoute::toString ( ) const
virtual

Describe this route as a one-line-string.

Returns

Implements dtn::routing::StaticRoute.

Definition at line 99 of file StaticRegexRoute.cpp.

References dtn::data::EID::getString().

Here is the call graph for this function:


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