8 #ifndef NDN_FORWARDING_FLAGS_HPP
9 #define NDN_FORWARDING_FLAGS_HPP
11 #include "../encoding/block.hpp"
12 #include "../encoding/tlv-ndnd.hpp"
216 os <<
"CHILE_INHERIT ";
ForwardingFlags(const Block &wire)
Create from wire encoding.
Block nonNegativeIntegerBlock(uint32_t type, uint64_t value)
void setLast(bool last)
Set the value of the "last" flag.
A ForwardingFlags object holds the flags which specify how the forwarding daemon should forward an in...
bool getTap() const
Get the value of the "tap" flag.
void setCapture(bool capture)
Set the value of the "capture" flag.
bool getActive() const
Get the value of the "active" flag.
bool getChildInherit() const
Get the value of the "childInherit" flag.
void setActive(bool active)
Set the value of the "active" flag.
Class representing wire element of the NDN packet.
void wireDecode(const Block &block)
uint64_t readNonNegativeInteger(const Block &block)
bool getCapture() const
Get the value of the "capture" flag.
bool getAdvertise() const
Get the value of the "advertise" flag.
void setChildInherit(bool childInherit)
Set the value of the "childInherit" flag.
void setLocal(bool local)
Set the value of the "local" flag.
void setAdvertise(bool advertise)
Set the value of the "advertise" flag.
void setTap(bool tap)
Set the value of the "tap" flag.
void setCaptureOk(bool captureOk)
Set the value of the "captureOk" flag.
void reset()
Reset wire buffer of the element.
bool getLast() const
Get the value of the "last" flag.
bool getCaptureOk() const
Get the value of the "captureOk" flag.
ForwardingFlags()
Create a new ForwardingFlags with "active" and "childInherit" set and all other flags cleared...
const Block & wireEncode() const
bool getLocal() const
Get the value of the "local" flag.
std::ostream & operator<<(std::ostream &os, const FaceInstance &entry)
bool hasWire() const
Check if the Block has fully encoded wire.