29 : m_datasetName(datasetName)
39 name.append(prefix).append(m_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>(std::move(payload));
114 FaceQueryDataset::addParameters(
Name&
name)
const 127 return parseDatasetVector<ChannelStatus>(std::move(payload));
138 return parseDatasetVector<FibEntry>(std::move(payload));
160 return parseDatasetVector<StrategyChoice>(std::move(payload));
171 return parseDatasetVector<RibEntry>(std::move(payload));
ResultType parseResult(ConstBufferPtr payload) const
provides common functionality among FaceDataset and FaceQueryDataset
indicates reassembled payload cannot be parsed as ResultType
ForwarderGeneralStatusDataset()
represents NFD General Status dataset
Copyright (c) 2011-2015 Regents of the University of California.
static std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset)
Try to parse Block from a wire buffer.
FaceDatasetBase(const PartialName &datasetName)
Represents a TLV element of NDN packet format.
std::vector< ChannelStatus > ResultType
std::vector< StrategyChoice > ResultType
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
ResultType parseResult(ConstBufferPtr payload) const
size_t size() const
Get size of encoded wire, including Type-Length-Value.
std::vector< FibEntry > ResultType
Copyright (c) 2011-2015 Regents of the University of California.
std::vector< RibEntry > ResultType
std::vector< FaceStatus > ResultType
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
ResultType parseResult(ConstBufferPtr payload) const
Represents an absolute name.
represents the CS Information dataset
ResultType parseResult(ConstBufferPtr payload) const
represents Face Query Filter
ResultType parseResult(ConstBufferPtr payload) const
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
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
shared_ptr< const Buffer > ConstBufferPtr