23 #include "../../util/concepts.hpp" 29 : m_datasetName(datasetName)
40 this->addParameters(name);
45 StatusDataset::addParameters(
Name&
name)
const 62 std::vector<T> result;
65 while (offset < payload->size()) {
73 offset += block.
size();
74 result.emplace_back(block);
99 return parseDatasetVector<FaceStatus>(payload);
114 FaceQueryDataset::addParameters(
Name& name)
const 127 return parseDatasetVector<ChannelStatus>(payload);
138 return parseDatasetVector<FibEntry>(payload);
149 return parseDatasetVector<StrategyChoice>(payload);
160 return parseDatasetVector<RibEntry>(payload);
provides common functionality among FaceDataset and FaceQueryDataset
indicates reassembled payload cannot be parsed as ResultType
ForwarderGeneralStatusDataset()
represents NFD General Status dataset
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
Copyright (c) 2011-2015 Regents of the University of California.
ResultType parseResult(ConstBufferPtr payload) const
static std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset)
Try to parse Block from a wire buffer.
ResultType parseResult(ConstBufferPtr payload) const
FaceDatasetBase(const PartialName &datasetName)
Represents a TLV element of NDN packet format.
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name & append(const Component &component)
Append a component.
std::vector< FaceStatus > ResultType
ResultType parseResult(ConstBufferPtr payload) const
size_t size() const
Get size of encoded wire, including Type-Length-Value.
Copyright (c) 2011-2015 Regents of the University of California.
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
Represents an absolute name.
std::vector< FibEntry > ResultType
represents Face Query Filter
ResultType parseResult(ConstBufferPtr payload) const
std::vector< ChannelStatus > ResultType
std::vector< StrategyChoice > ResultType
static std::vector< T > parseDatasetVector(ConstBufferPtr payload)
parses elements into a vector of T
FaceQueryDataset(const FaceQueryFilter &filter)
a concept check for TLV abstraction with .wireDecode method and constructible from Block ...
ResultType parseResult(ConstBufferPtr payload) const
std::vector< RibEntry > ResultType
shared_ptr< const Buffer > ConstBufferPtr