#include <lsa.hpp>
Definition at line 38 of file lsa.hpp.
Enumerator |
---|
ADJACENCY |
|
COORDINATE |
|
NAME |
|
BASE |
|
MOCK |
|
Definition at line 41 of file lsa.hpp.
virtual bool nlsr::Lsa::deserialize |
( |
const std::string & |
content | ) |
|
|
pure virtualnoexcept |
Populate this LSA with content from the string "content".
- Parameters
-
content | The string containing a valid serialization of LSA content. |
This method populates "this" LSA with data from the string.
Implemented in nlsr::CoordinateLsa, nlsr::AdjLsa, and nlsr::NameLsa.
bool nlsr::Lsa::deserializeCommon |
( |
boost::tokenizer< boost::char_separator< char >>::iterator & |
iterator | ) |
|
|
protected |
std::string nlsr::Lsa::getData |
( |
| ) |
const |
|
protected |
Get data common to all LSA types.
This method should be called by all LSA classes in their serialize() method.
Definition at line 41 of file lsa.cpp.
const ndn::time::system_clock::TimePoint& nlsr::Lsa::getExpirationTimePoint |
( |
| ) |
const |
|
inline |
ndn::EventId nlsr::Lsa::getExpiringEventId |
( |
| ) |
const |
|
inline |
const ndn::Name nlsr::Lsa::getKey |
( |
| ) |
const |
Gets the key for this LSA.
Format is: <router name>/<LSA type>\
Definition at line 50 of file lsa.cpp.
uint32_t nlsr::Lsa::getLsSeqNo |
( |
| ) |
const |
|
inline |
const ndn::Name& nlsr::Lsa::getOrigRouter |
( |
| ) |
const |
|
inline |
virtual Type nlsr::Lsa::getType |
( |
| ) |
const |
|
inlinevirtual |
virtual std::string nlsr::Lsa::serialize |
( |
| ) |
const |
|
pure virtual |
void nlsr::Lsa::setExpirationTimePoint |
( |
const ndn::time::system_clock::TimePoint & |
lt | ) |
|
|
inline |
void nlsr::Lsa::setExpiringEventId |
( |
const ndn::EventId |
leei | ) |
|
|
inline |
void nlsr::Lsa::setLsSeqNo |
( |
uint32_t |
lsn | ) |
|
|
inline |
void nlsr::Lsa::setOrigRouter |
( |
const ndn::Name & |
org | ) |
|
|
inline |
std::string nlsr::Lsa::toString |
( |
| ) |
const |
|
protected |
Print data common to all LSA types.
Definition at line 365 of file lsa.cpp.
virtual void nlsr::Lsa::writeLog |
( |
| ) |
const |
|
pure virtual |
ndn::time::system_clock::TimePoint nlsr::Lsa::m_expirationTimePoint |
|
protected |
ndn::EventId nlsr::Lsa::m_expiringEventId |
|
protected |
uint32_t nlsr::Lsa::m_lsSeqNo |
|
protected |
ndn::Name nlsr::Lsa::m_origRouter |
|
protected |