22 #ifndef NDN_CXX_SECURITY_ADDITIONAL_DESCRIPTION_HPP
23 #define NDN_CXX_SECURITY_ADDITIONAL_DESCRIPTION_HPP
45 using iterator = std::map<std::string, std::string>::iterator;
61 get(
const std::string& key)
const;
64 set(
const std::string& key,
const std::string& value);
67 has(
const std::string& key)
const;
78 return m_info.empty();
95 template<encoding::Tag TAG>
118 return lhs.m_info == rhs.m_info;
122 std::map<std::string, std::string> m_info;
124 mutable Block m_wire;
Represents a TLV element of the NDN packet format.
Represents an AdditionalDescription TLV element.
std::map< std::string, std::string >::const_iterator const_iterator
bool has(const std::string &key) const
std::map< std::string, std::string >::iterator iterator
const Block & wireEncode() const
Encode ValidityPeriod into TLV block.
friend bool operator==(const AdditionalDescription &lhs, const AdditionalDescription &rhs)
const std::string & get(const std::string &key) const
void wireDecode(const Block &wire)
Decode ValidityPeriod from TLV block.
AdditionalDescription()=default
Create an empty AdditionalDescription.
void set(const std::string &key, const std::string &value)
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains the ndn-cxx security framework.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)