22 #ifndef NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP 23 #define NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP 25 #include "../../common.hpp" 26 #include "../../encoding/tlv.hpp" 27 #include "../../encoding/block.hpp" 44 using tlv::Error::Error;
47 typedef std::map<std::string, std::string>::iterator
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>
120 std::map<std::string, std::string> m_info;
122 mutable Block m_wire;
137 #endif // NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP bool has(const std::string &key) const
Copyright (c) 2013-2017 Regents of the University of California.
std::map< std::string, std::string >::const_iterator const_iterator
bool operator==(const AdditionalDescription &other) const
Abstraction of AdditionalDescription.
const Block & wireEncode() const
Encode ValidityPeriod into TLV block.
void wireDecode(const Block &wire)
Decode ValidityPeriod from TLV block.
Represents a TLV element of NDN packet format.
std::map< std::string, std::string >::iterator iterator
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
bool operator!=(const AdditionalDescription &other) const
AdditionalDescription()=default
Create an empty AdditionalDescription.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &other)
represents an error in TLV encoding or decoding