22 #ifndef NLSR_LSA_LSA_HPP
23 #define NLSR_LSA_LSA_HPP
30 #include <ndn-cxx/util/scheduler.hpp>
47 using ndn::tlv::Error::Error;
58 Lsa(
const ndn::Name& originRouter, uint64_t seqNo,
59 ndn::time::system_clock::TimePoint expirationTimePoint);
95 const ndn::time::system_clock::TimePoint&
114 ndn::scheduler::EventId
125 virtual const ndn::Block&
129 template<ndn::encoding::Tag TAG>
131 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
Data abstraction for Lsa Lsa := LSA-TYPE TLV-LENGTH Name SequenceNumber ExpirationTimePoint.
virtual const ndn::Block & wireEncode() const =0
const ndn::Name & getOriginRouter() const
virtual Type getType() const =0
virtual std::string toString() const
void setExpiringEventId(ndn::scheduler::EventId eid)
uint64_t getSeqNo() const
ndn::time::system_clock::TimePoint m_expirationTimePoint
void setExpirationTimePoint(const ndn::time::system_clock::TimePoint <)
ndn::Name getOriginRouterCopy() const
ndn::scheduler::EventId m_expiringEventId
void setSeqNo(uint64_t seqNo)
void wireDecode(const ndn::Block &wire)
ndn::scheduler::EventId getExpiringEventId() const
const ndn::time::system_clock::TimePoint & getExpirationTimePoint() const
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California,...
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(Adjacent)
std::istream & operator>>(std::istream &is, Lsa::Type &type)
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED