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;
68 get(
const std::string& key)
const;
71 set(
const std::string& key,
const std::string& value);
74 has(
const std::string& key)
const;
96 template<encoding::Tag TAG>
121 std::map<std::string, std::string> m_info;
123 mutable Block m_wire;
136 #endif // NDN_SECURITY_V2_ADDITIONAL_DESCRIPTION_HPP
bool has(const std::string &key) const
Copyright (c) 2013-2016 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.
Class representing a wire element of NDN-TLV packet format.
void set(const std::string &key, const std::string &value)
std::map< std::string, std::string >::iterator iterator
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