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" 51 typedef std::map<std::string, std::string>::iterator
iterator;
67 get(
const std::string& key)
const;
70 set(
const std::string& key,
const std::string& value);
73 has(
const std::string& key)
const;
84 return m_info.empty();
101 template<encoding::Tag TAG>
124 std::map<std::string, std::string> m_info;
126 mutable Block m_wire;
141 #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.
Error(const std::string &what)
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &other)
represents an error in TLV encoding or decoding