blob: 8877275505b5937505d1065dd1e37034a7b6978c [file] [log] [blame]
#ifndef NLSR_RTE_HPP
#define NLSR_RTE_HPP
#include <iostream>
#include "nexthop-list.hpp"
namespace nlsr {
class RoutingTableEntry
{
public:
RoutingTableEntry()
: m_destination()
, m_nhl()
{
}
~RoutingTableEntry()
{
}
RoutingTableEntry(std::string dest)
: m_nhl()
{
m_destination = dest;
}
std::string
getDestination()
{
return m_destination;
}
NexthopList&
getNhl()
{
return m_nhl;
}
private:
std::string m_destination;
NexthopList m_nhl;
};
std::ostream&
operator<<(std::ostream& os, RoutingTableEntry& rte);
} //namespace nlsr
#endif //NLSR_RTE_HPP