blob: eeaf48c35a84b6642a6828145651b2b1b1bec07d [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
20 RoutingTableEntry(string dest)
21 : nhl()
22 {
23 destination=dest;
24 }
25
26 string getDestination()
27 {
28 return destination;
29 }
30
31 Nhl& getNhl()
32 {
33 return nhl;
34 }
35
36private:
37 string destination;
38 Nhl nhl;
39};
40
41ostream&
42operator<<(ostream& os, RoutingTableEntry &rte);
43
44#endif