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>(payload);
114 FaceQueryDataset::addParameters(
Name& name)
const
127 return parseDatasetVector<ChannelStatus>(payload);
138 return parseDatasetVector<FibEntry>(payload);
160 return parseDatasetVector<StrategyChoice>(payload);
171 return parseDatasetVector<RibEntry>(payload);
Represents a TLV element of the NDN packet format.
size_t size() const
Return the size of the encoded wire, i.e., of the whole TLV.
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.
A concept check for TLV abstraction with a wireDecode(Block) 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