blob: f185e61a5d53ad1f414ba89ab89fc937b294f5bc [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef NLSR_RTE_HPP
2#define NLSR_RTE_HPP
3
4#include <iostream>
5
6#include "nhl.hpp"
7
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
35 Nhl&
36 getNhl()
37 {
38 return m_nhl;
39 }
40
41private:
42 std::string m_destination;
43 Nhl m_nhl;
44};
45
46std::ostream&
47operator<<(std::ostream& os, RoutingTableEntry& rte);
48
49} //namespace nlsr
50
51#endif //NLSR_RTE_HPP