blob: 484edabd835beab5ba0b7f8b800e2294282793f9 [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()
akmhoque05d5fcf2014-04-15 14:58:45 -050017 : m_destination()
18 , m_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)
akmhoque05d5fcf2014-04-15 14:58:45 -050027 : m_nhl()
akmhoque5a44dd42014-03-12 18:11:32 -050028 {
akmhoque05d5fcf2014-04-15 14:58:45 -050029 m_destination=dest;
akmhoque5a44dd42014-03-12 18:11:32 -050030 }
akmhoqueba094742014-02-28 11:47:21 -060031
akmhoque5a44dd42014-03-12 18:11:32 -050032 string getDestination()
33 {
akmhoque05d5fcf2014-04-15 14:58:45 -050034 return m_destination;
akmhoque5a44dd42014-03-12 18:11:32 -050035 }
akmhoqueba094742014-02-28 11:47:21 -060036
akmhoque5a44dd42014-03-12 18:11:32 -050037 Nhl& getNhl()
38 {
akmhoque05d5fcf2014-04-15 14:58:45 -050039 return m_nhl;
akmhoque5a44dd42014-03-12 18:11:32 -050040 }
akmhoqueba094742014-02-28 11:47:21 -060041
akmhoque5a44dd42014-03-12 18:11:32 -050042 private:
akmhoque05d5fcf2014-04-15 14:58:45 -050043 string m_destination;
44 Nhl m_nhl;
akmhoque5a44dd42014-03-12 18:11:32 -050045 };
akmhoqueba094742014-02-28 11:47:21 -060046
akmhoque5a44dd42014-03-12 18:11:32 -050047 ostream&
akmhoque05d5fcf2014-04-15 14:58:45 -050048 operator<<(ostream& os, RoutingTableEntry& rte);
akmhoqueba094742014-02-28 11:47:21 -060049
50}
51
52#endif