blob: 6f648367f054ca225f3c62c4a54d3032fe6d2787 [file] [log] [blame]
akmhoquedfa4a5b2014-02-03 20:12:29 -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
akmhoque79d355f2014-02-04 15:11:16 -060020 ~RoutingTableEntry()
21 {
22 }
23
akmhoquedfa4a5b2014-02-03 20:12:29 -060024 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