23 #include "../../util/concepts.hpp" 29 : m_datasetName(datasetName)
38 this->addParameters(name);
43 StatusDataset::addParameters(
Name&
name)
const 60 std::vector<T> result;
63 while (offset < payload->size()) {
71 offset += block.
size();
72 result.emplace_back(block);
97 return parseDatasetVector<FaceStatus>(payload);
112 FaceQueryDataset::addParameters(
Name& name)
const 125 return parseDatasetVector<ChannelStatus>(payload);
136 return parseDatasetVector<FibEntry>(payload);
147 return parseDatasetVector<StrategyChoice>(payload);
158 return parseDatasetVector<RibEntry>(payload);
ResultType parseResult(ConstBufferPtr payload) const
provides common functionality among FaceDataset and FaceQueryDataset
indicates reassembled payload cannot be parsed as ResultType
ForwarderGeneralStatusDataset()
represents NFD Forwarder Status
Copyright (c) 2011-2015 Regents of the University of California.
static std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset)
Try to construct block from Buffer.
FaceDatasetBase(const PartialName &datasetName)
Class representing a wire element of NDN-TLV packet format.
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
std::vector< FaceStatus > ResultType
ResultType parseResult(ConstBufferPtr payload) const
Copyright (c) 2011-2015 Regents of the University of California.
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
ResultType parseResult(ConstBufferPtr payload) const
Name abstraction to represent an absolute name.
ResultType parseResult(ConstBufferPtr payload) const
std::vector< FibEntry > ResultType
represents Face Query Filter
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
std::vector< ChannelStatus > ResultType
Name & append(const uint8_t *value, size_t valueLength)
Append a new component, copying from value of length valueLength.
std::vector< StrategyChoice > ResultType
static std::vector< T > parseDatasetVector(ConstBufferPtr payload)
parses elements into a vector of T
shared_ptr< const Buffer > ConstBufferPtr
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