29 "MetadataObject::Error must inherit from tlv::Error");
61 " is not a valid discovery Interest name"));
66 Data data(discoveryInterestName);
69 keyChain.sign(data, si);
77 m_versionedName = name;
92 name[-2].isVersion() && name[-1].isSegment();
100 .setMustBeFresh(
true);
Copyright (c) 2011-2015 Regents of the University of California.
std::string to_string(const T &val)
Data & setContent(const Block &block)
Set Content from a Block.
size_t value_size() const noexcept
Return the size of TLV-VALUE, i.e., the TLV-LENGTH.
void parse() const
Parse TLV-VALUE into sub-elements.
Represents an Interest packet.
Name & append(const Component &component)
Append a component.
Signing parameters passed to KeyChain.
Name & appendVersion(const optional< uint64_t > &version=nullopt)
Append a version component.
const Block & get(uint32_t type) const
Return the first sub-element of the specified TLV-TYPE.
NDN_CXX_NODISCARD bool empty() const
Checks if the name is empty, i.e.
const Name & getName() const noexcept
Get name.
Represents an absolute name.
size_t size() const
Returns the number of components.
Represents a name component.
Data & setFreshnessPeriod(time::milliseconds freshnessPeriod)
const Block & getContent() const noexcept
Get the Content element.
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Fast encoding or block size estimation.
void wireDecode(const Block &wire)
Decode name from wire encoding.
Represents a Data packet.
uint32_t getContentType() const
Name & appendSegment(uint64_t segmentNo)
Append a segment number (sequential) component.
boost::chrono::milliseconds milliseconds