IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
ibrcommon
ibrcommon
data
link
LinkEvent.cpp
LinkEvent.h
LinkManager.cpp
LinkManager.h
LinkMonitor.cpp
LinkMonitor.h
NetLinkManager.cpp
NetLinkManager.h
nl802154.h
nl_policy.c
PosixLinkManager.cpp
PosixLinkManager.h
Win32LinkManager.cpp
Win32LinkManager.h
net
ssl
thread
xml
appstreambuf.cpp
appstreambuf.h
config.h
Exceptions.h
ibrcommon.h
Iterator.h
Logger.cpp
Logger.h
MonotonicClock.cpp
MonotonicClock.h
refcnt_ptr.h
SyslogStream.cpp
SyslogStream.h
TimeMeasurement.cpp
TimeMeasurement.h
TLSExceptions.h
ibrdtn
tools
File Members
LinkEvent.cpp
Go to the documentation of this file.
1
/*
2
* LinkEvent.cpp
3
*
4
* Created on: 11.10.2012
5
* Author: morgenro
6
*/
7
8
#include "
LinkEvent.h
"
9
#include <sstream>
10
11
namespace
ibrcommon
12
{
13
LinkEvent::LinkEvent
(
Action
action,
const
vinterface
&iface,
const
vaddress
&addr)
14
: _action(action), _iface(iface),
_addr
(addr)
15
{ }
16
17
LinkEvent::~LinkEvent
()
18
{ }
19
20
const
vinterface
&
LinkEvent::getInterface
()
const
21
{
22
return
_iface;
23
}
24
25
const
vaddress
&
LinkEvent::getAddress
()
const
26
{
27
return
_addr;
28
}
29
30
LinkEvent::Action
LinkEvent::getAction
()
const
31
{
32
return
_action;
33
}
34
35
std::string
LinkEvent::toString
()
const
36
{
37
std::stringstream ss;
38
ss <<
"interface: "
<< _iface.
toString
() <<
", action: "
<< _action <<
", address: "
<< _addr.
toString
();
39
return
ss.str();
40
}
41
}
/* namespace ibrcommon */
ibrcommon
ibrcommon
link
LinkEvent.cpp
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4