24 #ifndef NDN_CXX_LP_CACHE_POLICY_HPP
25 #define NDN_CXX_LP_CACHE_POLICY_HPP
66 template<encoding::Tag TAG>
Represents a TLV element of the NDN packet format.
represents a CachePolicy header field
CachePolicyType getPolicy() const
void wireDecode(const Block &wire)
get CachePolicyType from wire format
const Block & wireEncode() const
encode CachePolicy into wire format
CachePolicy & setPolicy(CachePolicyType policy)
set policy type code
represents an error in TLV encoding or decoding
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
CachePolicyType
indicates the cache policy applied to a Data packet
std::ostream & operator<<(std::ostream &os, CachePolicyType policy)