22 #ifndef NDN_CXX_SECURITY_ADDITIONAL_DESCRIPTION_HPP
23 #define NDN_CXX_SECURITY_ADDITIONAL_DESCRIPTION_HPP
47 using iterator = std::map<std::string, std::string>::iterator;
63 get(
const std::string& key)
const;
66 set(
const std::string& key,
const std::string& value);
69 has(
const std::string& key)
const;
80 return m_info.empty();
97 template<encoding::Tag TAG>
119 return lhs.m_info == rhs.m_info;
125 return lhs.m_info != rhs.m_info;
129 std::map<std::string, std::string> m_info;
131 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
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)
void set(const std::string &key, const std::string &value)
const std::string & get(const std::string &key) const
bool has(const std::string &key) const
void wireDecode(const Block &wire)
Decode ValidityPeriod from TLV block.
AdditionalDescription()=default
Create an empty AdditionalDescription.
friend bool operator!=(const AdditionalDescription &lhs, const AdditionalDescription &rhs)
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)