akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [diff] [blame] | 1 | #ifndef NLSR_RTE_HPP |
2 | #define NLSR_RTE_HPP | ||||
3 | |||||
4 | #include <iostream> | ||||
5 | |||||
akmhoque | c8a10f7 | 2014-04-25 18:42:55 -0500 | [diff] [blame] | 6 | #include "nexthop-list.hpp" |
akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [diff] [blame] | 7 | |
8 | namespace nlsr { | ||||
9 | |||||
10 | class RoutingTableEntry | ||||
11 | { | ||||
12 | public: | ||||
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 | |||||
akmhoque | c8a10f7 | 2014-04-25 18:42:55 -0500 | [diff] [blame] | 35 | NexthopList& |
akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [diff] [blame] | 36 | getNhl() |
37 | { | ||||
38 | return m_nhl; | ||||
39 | } | ||||
40 | |||||
41 | private: | ||||
42 | std::string m_destination; | ||||
akmhoque | c8a10f7 | 2014-04-25 18:42:55 -0500 | [diff] [blame] | 43 | NexthopList m_nhl; |
akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [diff] [blame] | 44 | }; |
45 | |||||
46 | std::ostream& | ||||
47 | operator<<(std::ostream& os, RoutingTableEntry& rte); | ||||
48 | |||||
49 | } //namespace nlsr | ||||
50 | |||||
51 | #endif //NLSR_RTE_HPP |