22 #ifndef NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP 23 #define NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP 48 typedef std::map<std::string, std::string>::iterator
iterator;
64 get(
const std::string& key)
const;
67 set(
const std::string& key,
const std::string& value);
70 has(
const std::string& key)
const;
81 return m_info.empty();
98 template<encoding::Tag TAG>
120 return lhs.m_info == rhs.m_info;
126 return lhs.m_info != rhs.m_info;
130 std::map<std::string, std::string> m_info;
132 mutable Block m_wire;
147 #endif // NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP
bool has(const std::string &key) const
std::map< std::string, std::string >::const_iterator const_iterator
Abstraction of AdditionalDescription.
void wireDecode(const Block &wire)
Decode ValidityPeriod from TLV block.
friend bool operator==(const AdditionalDescription &lhs, const AdditionalDescription &rhs)
Represents a TLV element of NDN packet format.
std::map< std::string, std::string >::iterator iterator
const Block & wireEncode() const
Encode ValidityPeriod into TLV block.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &desc)
Common includes and macros used throughout the library.
friend bool operator!=(const AdditionalDescription &lhs, const AdditionalDescription &rhs)
AdditionalDescription()=default
Create an empty AdditionalDescription.
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding