22 #ifndef NDN_CONTENT_META_INFO_HPP
23 #define NDN_CONTENT_META_INFO_HPP
25 #include <ndn-cpp/util/blob.hpp>
80 contentType_ = contentType;
92 timestamp_ = timestamp;
104 hasSegments_ = hasSegments;
139 wireDecode(
const uint8_t *input,
size_t inputLength);
162 std::string contentType_;
ContentMetaInfo()
Create a ContentMetaInfo where all the fields have default unspecified values.
Definition: content-meta-info.hpp:38
void wireDecode(const ndn::Blob &input)
Decode the input and update this Schedule.
Definition: content-meta-info.hpp:156
ContentMetaInfo & setContentType(const std::string &contentType)
Set the content type.
Definition: content-meta-info.hpp:78
void wireDecode(const std::vector< uint8_t > &input)
Decode the input and update this Schedule.
Definition: content-meta-info.hpp:146
ContentMetaInfo & setTimestamp(ndn::MillisecondsSince1970 timestamp)
Set the time stamp.
Definition: content-meta-info.hpp:90
ndn::Blob wireEncode() const
Encode this ContentMetaInfo.
ContentMetaInfo represents the information in the _meta packet of a Generalized Content.
Definition: content-meta-info.hpp:33
const ndn::Blob & getOther() const
Get the Blob containing the optional other info.
Definition: content-meta-info.hpp:70
A Blob holds a pointer to an immutable byte array implemented as const std::vector<uint8_t>.
Definition: blob.hpp:42
const uint8_t * buf() const
Return a const pointer to the first byte of the immutable byte array, or 0 if the pointer is null...
Definition: blob.hpp:159
size_t size() const
Return the length of the immutable byte array.
Definition: blob.hpp:147
double MillisecondsSince1970
The calendar time represented as the number of milliseconds since 1/1/1970.
Definition: common.hpp:119
ndn::MillisecondsSince1970 getTimestamp() const
Get the time stamp.
Definition: content-meta-info.hpp:56
ContentMetaInfo & setHasSegments(bool hasSegments)
Set the hasSegments flag.
Definition: content-meta-info.hpp:102
void wireDecode(const uint8_t *input, size_t inputLength)
Decode the input and update this ContentMetaInfo.
ContentMetaInfo & setOther(const ndn::Blob &other)
Set the Blob containing the optional other info.
Definition: content-meta-info.hpp:114
void clear()
Set all the fields to their default unspecified values.
bool getHasSegments() const
Get the hasSegments flag.
Definition: content-meta-info.hpp:63
const std::string & getContentType() const
Get the content type.
Definition: content-meta-info.hpp:48