blob: 6f648367f054ca225f3c62c4a54d3032fe6d2787 [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
8using namespace std;
9
10class RoutingTableEntry
11{
12public:
13 RoutingTableEntry()
14 : destination()
15 , nhl()
16 {
17
18 }
19
20 ~RoutingTableEntry()
21 {
22 }
23
24 RoutingTableEntry(string dest)
25 : nhl()
26 {
27 destination=dest;
28 }
29
30 string getDestination()
31 {
32 return destination;
33 }
34
35 Nhl& getNhl()
36 {
37 return nhl;
38 }
39
40private:
41 string destination;
42 Nhl nhl;
43};
44
45ostream&
46operator<<(ostream& os, RoutingTableEntry &rte);
47
48#endif