42 std::vector<T> result;
45 while (offset < payload->size()) {
52 result.emplace_back(block);
54 catch (
const tlv::Error& e) {
58 offset += block.size();
80 std::vector<FaceStatus>
83 return parseDatasetVector<FaceStatus>(payload);
99 std::vector<FaceStatus>
102 return parseDatasetVector<FaceStatus>(payload);
110 std::vector<ChannelStatus>
113 return parseDatasetVector<ChannelStatus>(payload);
121 std::vector<FibEntry>
124 return parseDatasetVector<FibEntry>(payload);
143 std::vector<StrategyChoice>
146 return parseDatasetVector<StrategyChoice>(payload);
154 std::vector<RibEntry>
157 return parseDatasetVector<RibEntry>(payload);
Represents a TLV element of the NDN packet format.
static std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset=0)
Try to parse Block from a wire buffer.
Represents an absolute name.
Name & append(const Component &component)
Append a name component.
std::vector< ChannelStatus > parseResult(ConstBufferPtr payload) const
CsInfo parseResult(ConstBufferPtr payload) const
Represents the CS Information dataset.
std::vector< FaceStatus > parseResult(ConstBufferPtr payload) const
std::vector< FaceStatus > parseResult(ConstBufferPtr payload) const
Name getDatasetPrefix(const Name &prefix) const
FaceQueryDataset(const FaceQueryFilter &filter)
Represents Face Query Filter.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Prepend FaceQueryFilter to the encoder.
std::vector< FibEntry > parseResult(ConstBufferPtr payload) const
ForwarderGeneralStatusDataset()
ForwarderStatus parseResult(ConstBufferPtr payload) const
Represents NFD General Status dataset.
std::vector< RibEntry > parseResult(ConstBufferPtr payload) const
Base class of NFD StatusDataset.
PartialName m_datasetName
Name getDatasetPrefix(const Name &prefix) const
Constructs a name prefix for the dataset.
Exception raised when the fetched payload cannot be parsed as a StatusDataset.
std::vector< StrategyChoice > parseResult(ConstBufferPtr payload) const
#define NDN_THROW_NESTED(e)
std::string to_string(const errinfo_stacktrace &x)
Contains classes and functions related to the NFD Management protocol.
std::shared_ptr< const Buffer > ConstBufferPtr