IBR-DTNSuite
0.10
Main Page
Namespaces
Classes
Files
File List
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 Mon Jul 22 2013 15:16:00 for IBR-DTNSuite by
1.8.3.1