22 #ifndef NDN_META_INFO_HPP
23 #define NDN_META_INFO_HPP
27 #include "c/data-types.h"
28 #include "lite/meta-info-lite.hpp"
40 timestampMilliseconds_ = -1;
41 type_ = ndn_ContentType_BLOB;
43 freshnessPeriod_ = -1;
69 return timestampMilliseconds_;
90 getFreshnessPeriod()
const {
return freshnessPeriod_; }
98 return freshnessPeriod_ < 0 ? -1 : (int)round(freshnessPeriod_ / 1000.0);
122 timestampMilliseconds_ = timestampMilliseconds;
152 freshnessPeriod_ = freshnessPeriod;
162 setFreshnessPeriod(freshnessSeconds < 0 ? -1.0 : (
double)freshnessSeconds * 1000.0);
173 finalBlockId_ = finalBlockId;
183 finalBlockId_ = finalBlockId;
196 ndn_ContentType type_;
200 uint64_t changeCount_;
double Milliseconds
A time interval represented as the number of milliseconds.
Definition: common.hpp:112
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:36
A Name::Component holds a read-only name component value.
Definition: name.hpp:45
double MillisecondsSince1970
The calendar time represented as the number of milliseconds since 1/1/1970.
Definition: common.hpp:117