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 | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 20 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 21 | } |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 22 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 23 | ~RoutingTableEntry() |
24 | { | ||||
25 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 26 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 27 | 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); | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 50 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 51 | } |
52 | |||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 53 | #endif |