IBR-DTNSuite
0.10
|
#include <TimeEvent.h>
Public Member Functions | |
virtual | ~TimeEvent () |
TimeEventAction | getAction () const |
const dtn::data::Timestamp & | getTimestamp () const |
const dtn::data::Timestamp & | getUnixTimestamp () 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 dtn::data::Timestamp ×tamp, const dtn::data::Timestamp &unixtimestamp, const TimeEventAction action) |
Static Public Attributes | |
static const std::string | className = "TimeEvent" |
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) |
Definition at line 37 of file TimeEvent.h.
|
virtual |
Definition at line 36 of file TimeEvent.cpp.
TimeEventAction dtn::core::TimeEvent::getAction | ( | ) | const |
Definition at line 41 of file TimeEvent.cpp.
Referenced by getMessage(), dtn::net::FileConvergenceLayer::raiseEvent(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::net::LOWPANConvergenceLayer::raiseEvent(), dtn::net::DatagramConvergenceLayer::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), dtn::storage::MemoryBundleStorage::raiseEvent(), dtn::storage::SimpleBundleStorage::raiseEvent(), and dtn::storage::SQLiteBundleStorage::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 67 of file TimeEvent.cpp.
References getAction(), getTimestamp(), dtn::core::TIME_SECOND_TICK, and dtn::data::SDNV< E >::toString().
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 56 of file TimeEvent.cpp.
References className.
const dtn::data::Timestamp & dtn::core::TimeEvent::getTimestamp | ( | ) | const |
Definition at line 46 of file TimeEvent.cpp.
Referenced by getMessage(), dtn::routing::RetransmissionExtension::notify(), dtn::net::FileConvergenceLayer::raiseEvent(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::net::LOWPANConvergenceLayer::raiseEvent(), dtn::net::DatagramConvergenceLayer::raiseEvent(), dtn::storage::MemoryBundleStorage::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), dtn::storage::SimpleBundleStorage::raiseEvent(), and dtn::storage::SQLiteBundleStorage::raiseEvent().
const dtn::data::Timestamp & dtn::core::TimeEvent::getUnixTimestamp | ( | ) | const |
Definition at line 51 of file TimeEvent.cpp.
Referenced by dtn::routing::StaticRoutingExtension::notify(), dtn::routing::ProphetRoutingExtension::notify(), and dtn::daemon::DTNTPWorker::raiseEvent().
|
static |
Definition at line 61 of file TimeEvent.cpp.
References dtn::core::EventDispatcher< E >::raise().
Referenced by dtn::core::WallClock::timeout().
|
static |
Definition at line 51 of file TimeEvent.h.
Referenced by getName().