blob: 27d3601193349634f319cff850061f4bd5a58351 [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 {
akmhoque1fd8c1e2014-02-19 19:41:49 -060020 }
akmhoque298385a2014-02-13 14:13:09 -060021
akmhoque1fd8c1e2014-02-19 19:41:49 -060022 ~RoutingTableEntry()
23 {
24 }
akmhoque298385a2014-02-13 14:13:09 -060025
akmhoque1fd8c1e2014-02-19 19:41:49 -060026 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
42 private:
43 string destination;
44 Nhl nhl;
45 };
46
47 ostream&
48 operator<<(ostream& os, RoutingTableEntry &rte);
akmhoque298385a2014-02-13 14:13:09 -060049
akmhoqueb1710aa2014-02-19 17:13:36 -060050}
51
akmhoque298385a2014-02-13 14:13:09 -060052#endif