blob: 9540b40a45583aee8a76210c1a4854db72f11d79 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NLSR_RTE_HPP
2#define NLSR_RTE_HPP
3
4#include<iostream>
5
6#include "nlsr_nhl.hpp"
7
akmhoqueb1710aa2014-02-19 17:13:36 -06008namespace nlsr {
9
akmhoque298385a2014-02-13 14:13:09 -060010using namespace std;
11
12class RoutingTableEntry
13{
14public:
15 RoutingTableEntry()
16 : destination()
17 , nhl()
18 {
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
42private:
43 string destination;
44 Nhl nhl;
45};
46
47ostream&
48operator<<(ostream& os, RoutingTableEntry &rte);
49
akmhoqueb1710aa2014-02-19 17:13:36 -060050}
51
akmhoque298385a2014-02-13 14:13:09 -060052#endif