24 #ifndef NDN_CXX_LP_CACHE_POLICY_HPP
25 #define NDN_CXX_LP_CACHE_POLICY_HPP
27 #include "../common.hpp"
29 #include "../encoding/encoding-buffer.hpp"
30 #include "../encoding/block-helpers.hpp"
74 template<encoding::Tag TAG>
107 mutable Block m_wire;
113 #endif // NDN_CXX_LP_CACHE_POLICY_HPP
void wireDecode(const Block &wire)
get CachePolicyType from wire format
represents a CachePolicy header field
Copyright (c) 2013-2016 Regents of the University of California.
CachePolicyType getPolicy() const
Error(const std::string &what)
CachePolicy & setPolicy(CachePolicyType policy)
set policy type code
Class representing a wire element of NDN-TLV packet format.
CachePolicyType
indicates the cache policy applied to a Data packet
std::ostream & operator<<(std::ostream &os, CachePolicyType policy)
const Block & wireEncode() const
encode CachePolicy into wire format
represents an error in TLV encoding or decoding