blob: 736909b1150935cfc805f7ef3ca6485f9fc6ecab [file] [log] [blame]
akmhoqueba094742014-02-28 11:47:21 -06001#ifndef NLSR_RTE_HPP
2#define NLSR_RTE_HPP
3
4#include<iostream>
5
6#include "nlsr_nhl.hpp"
7
8namespace nlsr
9{
10
akmhoque5a44dd42014-03-12 18:11:32 -050011 using namespace std;
akmhoqueba094742014-02-28 11:47:21 -060012
akmhoque5a44dd42014-03-12 18:11:32 -050013 class RoutingTableEntry
14 {
15 public:
16 RoutingTableEntry()
17 : destination()
18 , nhl()
akmhoqueba094742014-02-28 11:47:21 -060019 {
akmhoque5a44dd42014-03-12 18:11:32 -050020 }
akmhoqueba094742014-02-28 11:47:21 -060021
akmhoque5a44dd42014-03-12 18:11:32 -050022 ~RoutingTableEntry()
23 {
24 }
akmhoqueba094742014-02-28 11:47:21 -060025
akmhoque5a44dd42014-03-12 18:11:32 -050026 RoutingTableEntry(string dest)
27 : nhl()
28 {
29 destination=dest;
30 }
akmhoqueba094742014-02-28 11:47:21 -060031
akmhoque5a44dd42014-03-12 18:11:32 -050032 string getDestination()
33 {
34 return destination;
35 }
akmhoqueba094742014-02-28 11:47:21 -060036
akmhoque5a44dd42014-03-12 18:11:32 -050037 Nhl& getNhl()
38 {
39 return nhl;
40 }
akmhoqueba094742014-02-28 11:47:21 -060041
akmhoque5a44dd42014-03-12 18:11:32 -050042 private:
43 string destination;
44 Nhl nhl;
45 };
akmhoqueba094742014-02-28 11:47:21 -060046
akmhoque5a44dd42014-03-12 18:11:32 -050047 ostream&
48 operator<<(ostream& os, RoutingTableEntry &rte);
akmhoqueba094742014-02-28 11:47:21 -060049
50}
51
52#endif