blob: 27d3601193349634f319cff850061f4bd5a58351 [file] [log] [blame]
akmhoqueba094742014-02-28 11:47:21 -06001#ifndef NLSR_RTE_HPP
2#define NLSR_RTE_HPP
3
4#include<iostream>
5
6#include "nlsr_nhl.hpp"
7
8namespace nlsr
9{
10
11 using namespace std;
12
13 class RoutingTableEntry
14 {
15 public:
16 RoutingTableEntry()
17 : destination()
18 , nhl()
19 {
20 }
21
22 ~RoutingTableEntry()
23 {
24 }
25
26 RoutingTableEntry(string dest)
27 : nhl()
28 {
29 destination=dest;
30 }
31
32 string getDestination()
33 {
34 return destination;
35 }
36
37 Nhl& getNhl()
38 {
39 return nhl;
40 }
41
42 private:
43 string destination;
44 Nhl nhl;
45 };
46
47 ostream&
48 operator<<(ostream& os, RoutingTableEntry &rte);
49
50}
51
52#endif