IBR-DTN  1.0.0
dtn::core::NodeEvent Class Reference

#include <NodeEvent.h>

Inheritance diagram for dtn::core::NodeEvent:
Inheritance graph
Collaboration diagram for dtn::core::NodeEvent:
Collaboration graph

Public Member Functions

virtual ~NodeEvent ()
 
EventNodeAction getAction () const
 
const NodegetNode () const
 
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 raise (const Node &n, const EventNodeAction action)
 

Additional Inherited Members

- Public Attributes inherited from dtn::core::Event
const int prio
 
- Protected Member Functions inherited from dtn::core::Event
 Event (int prio=0)
 
void setLoggable (bool val)
 

Detailed Description

Definition at line 42 of file NodeEvent.h.

Constructor & Destructor Documentation

dtn::core::NodeEvent::~NodeEvent ( )
virtual

Definition at line 52 of file NodeEvent.cpp.

Member Function Documentation

EventNodeAction dtn::core::NodeEvent::getAction ( ) const

Definition at line 60 of file NodeEvent.cpp.

string dtn::core::NodeEvent::getMessage ( ) const
virtual

Get a describing message for this event

Implements dtn::core::Event.

Definition at line 70 of file NodeEvent.cpp.

References dtn::core::NODE_AVAILABLE, dtn::core::NODE_DATA_ADDED, dtn::core::NODE_DATA_REMOVED, and dtn::core::Node::NODE_UNAVAILABLE.

const string dtn::core::NodeEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 65 of file NodeEvent.cpp.

const Node & dtn::core::NodeEvent::getNode ( ) const

Definition at line 55 of file NodeEvent.cpp.

Referenced by dtn::net::TCPConnection::match().

void dtn::core::NodeEvent::raise ( const Node n,
const EventNodeAction  action 
)
static

Definition at line 47 of file NodeEvent.cpp.

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

Referenced by dtn::net::ConnectionManager::add(), and dtn::net::ConnectionManager::remove().

Here is the call graph for this function:


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