blob: 8877275505b5937505d1065dd1e37034a7b6978c [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef NLSR_RTE_HPP
2#define NLSR_RTE_HPP
3
4#include <iostream>
5
akmhoquec8a10f72014-04-25 18:42:55 -05006#include "nexthop-list.hpp"
akmhoque53353462014-04-22 08:43:45 -05007
8namespace nlsr {
9
10class RoutingTableEntry
11{
12public:
13 RoutingTableEntry()
14 : m_destination()
15 , m_nhl()
16 {
17 }
18
19 ~RoutingTableEntry()
20 {
21 }
22
23 RoutingTableEntry(std::string dest)
24 : m_nhl()
25 {
26 m_destination = dest;
27 }
28
29 std::string
30 getDestination()
31 {
32 return m_destination;
33 }
34
akmhoquec8a10f72014-04-25 18:42:55 -050035 NexthopList&
akmhoque53353462014-04-22 08:43:45 -050036 getNhl()
37 {
38 return m_nhl;
39 }
40
41private:
42 std::string m_destination;
akmhoquec8a10f72014-04-25 18:42:55 -050043 NexthopList m_nhl;
akmhoque53353462014-04-22 08:43:45 -050044};
45
46std::ostream&
47operator<<(std::ostream& os, RoutingTableEntry& rte);
48
49} //namespace nlsr
50
51#endif //NLSR_RTE_HPP