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;
42 freshnessPeriod_ = -1;
68 return timestampMilliseconds_;
72 getType()
const {
return type_; }
75 getFreshnessPeriod()
const {
return freshnessPeriod_; }
83 return freshnessPeriod_ < 0 ? -1 : (int)round(freshnessPeriod_ / 1000.0);
107 timestampMilliseconds_ = timestampMilliseconds;
112 setType(ndn_ContentType type)
121 freshnessPeriod_ = freshnessPeriod;
131 setFreshnessPeriod(freshnessSeconds < 0 ? -1.0 : (
double)freshnessSeconds * 1000.0);
142 finalBlockId_ = finalBlockId;
152 finalBlockId_ = finalBlockId;
165 ndn_ContentType type_;
168 uint64_t changeCount_;
double Milliseconds
A time interval represented as the number of milliseconds.
Definition: common.hpp:111
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
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:116