29 : m_datasetName(datasetName)
40 this->addParameters(name);
45 StatusDataset::addParameters(
Name&)
const
62 std::vector<T> result;
65 while (offset < payload->size()) {
70 NDN_THROW(StatusDataset::ParseResultError(
"cannot decode Block"));
73 offset += block.
size();
74 result.emplace_back(block);
99 return parseDatasetVector<FaceStatus>(std::move(payload));
114 FaceQueryDataset::addParameters(
Name& name)
const
116 const auto& filterBlock = m_filter.
wireEncode();
117 name.
append(filterBlock.begin(), filterBlock.end());
128 return parseDatasetVector<ChannelStatus>(std::move(payload));
139 return parseDatasetVector<FibEntry>(std::move(payload));
161 return parseDatasetVector<StrategyChoice>(std::move(payload));
172 return parseDatasetVector<RibEntry>(std::move(payload));
Represents a TLV element of the NDN packet format.
size_t size() const
Return the size of the encoded wire, i.e.
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 component.
a concept check for TLV abstraction with .wireDecode method and constructible from Block
ResultType parseResult(ConstBufferPtr payload) const
std::vector< ChannelStatus > ResultType
ResultType parseResult(ConstBufferPtr payload) const
represents the CS Information dataset
provides common functionality among FaceDataset and FaceQueryDataset
ResultType parseResult(ConstBufferPtr payload) const
FaceDatasetBase(const PartialName &datasetName)
std::vector< FaceStatus > ResultType
FaceQueryDataset(const FaceQueryFilter &filter)
represents Face Query Filter
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
std::vector< FibEntry > ResultType
ResultType parseResult(ConstBufferPtr payload) const
ForwarderGeneralStatusDataset()
ResultType parseResult(ConstBufferPtr payload) const
represents NFD General Status dataset
std::vector< RibEntry > ResultType
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
std::vector< StrategyChoice > ResultType
ResultType parseResult(ConstBufferPtr payload) const
shared_ptr< const Buffer > ConstBufferPtr