blob: 25bc7cef16a37306bcdc405570a8f9c9f872dce2 [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
akmhoque1fd8c1e2014-02-19 19:41:49 -06008namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -06009{
akmhoque298385a2014-02-13 14:13:09 -060010
akmhoque1fd8c1e2014-02-19 19:41:49 -060011 using namespace std;
akmhoque298385a2014-02-13 14:13:09 -060012
akmhoque1fd8c1e2014-02-19 19:41:49 -060013 class RoutingTableEntry
14 {
15 public:
16 RoutingTableEntry()
17 : destination()
18 , nhl()
19 {
akmhoque298385a2014-02-13 14:13:09 -060020
akmhoque1fd8c1e2014-02-19 19:41:49 -060021 }
akmhoque298385a2014-02-13 14:13:09 -060022
akmhoque1fd8c1e2014-02-19 19:41:49 -060023 ~RoutingTableEntry()
24 {
25 }
akmhoque298385a2014-02-13 14:13:09 -060026
akmhoque1fd8c1e2014-02-19 19:41:49 -060027 RoutingTableEntry(string dest)
28 : nhl()
29 {
30 destination=dest;
31 }
32
33 string getDestination()
34 {
35 return destination;
36 }
37
38 Nhl& getNhl()
39 {
40 return nhl;
41 }
42
43 private:
44 string destination;
45 Nhl nhl;
46 };
47
48 ostream&
49 operator<<(ostream& os, RoutingTableEntry &rte);
akmhoque298385a2014-02-13 14:13:09 -060050
akmhoqueb1710aa2014-02-19 17:13:36 -060051}
52
akmhoque298385a2014-02-13 14:13:09 -060053#endif