22 #ifndef NDN_CONTENT_META_INFO_HPP
23 #define NDN_CONTENT_META_INFO_HPP
25 #include <ndn-cpp/util/blob.hpp>
76 contentType_ = contentType;
88 timestamp_ = timestamp;
100 hasSegments_ = hasSegments;
135 wireDecode(
const uint8_t *input,
size_t inputLength);
158 std::string contentType_;
ContentMetaInfo()
Create a ContentMetaInfo where all the fields have default unspecified values.
Definition: content-meta-info.hpp:34
void wireDecode(const ndn::Blob &input)
Decode the input and update this Schedule.
Definition: content-meta-info.hpp:152
ContentMetaInfo & setContentType(const std::string &contentType)
Set the content type.
Definition: content-meta-info.hpp:74
void wireDecode(const std::vector< uint8_t > &input)
Decode the input and update this Schedule.
Definition: content-meta-info.hpp:142
ContentMetaInfo & setTimestamp(ndn::MillisecondsSince1970 timestamp)
Set the time stamp.
Definition: content-meta-info.hpp:86
ndn::Blob wireEncode() const
Encode this ContentMetaInfo.
Definition: content-meta-info.hpp:29
const ndn::Blob & getOther() const
Get the Blob containing the optional other info.
Definition: content-meta-info.hpp:66
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
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:117
ndn::MillisecondsSince1970 getTimestamp() const
Get the time stamp.
Definition: content-meta-info.hpp:52
ContentMetaInfo & setHasSegments(bool hasSegments)
Set the hasSegments flag.
Definition: content-meta-info.hpp:98
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:110
void clear()
Set all the fields to their default unspecified values.
bool getHasSegments() const
Get the hasSegments flag.
Definition: content-meta-info.hpp:59
const std::string & getContentType() const
Get the content type.
Definition: content-meta-info.hpp:44