akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 1 | #ifndef NLSR_RTE_HPP |
2 | #define NLSR_RTE_HPP | ||||
3 | |||||
4 | #include<iostream> | ||||
5 | |||||
6 | #include "nlsr_nhl.hpp" | ||||
7 | |||||
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 8 | namespace nlsr |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 9 | { |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 10 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 11 | using namespace std; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 12 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 13 | class RoutingTableEntry |
14 | { | ||||
15 | public: | ||||
16 | RoutingTableEntry() | ||||
17 | : destination() | ||||
18 | , nhl() | ||||
19 | { | ||||
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 20 | } |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 21 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 22 | ~RoutingTableEntry() |
23 | { | ||||
24 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 25 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 26 | 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); | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 49 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 50 | } |
51 | |||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 52 | #endif |