6 const std::string
name;
8 const std::vector<char>
data;
17 return Time(tsec, tms*1000);
22 format(inf->getFormat()),
23 data(inf->getString(), inf->getString()+inf->getSize()),
29 T
get(uint32_t offset=0)
const {
return *
reinterpret_cast<const T*
>(data.data()+offset); }
32 const T *
ptr(uint32_t offset=0)
const {
return reinterpret_cast<const T*
>(data.data()+offset); }
35 const T &
ref(uint32_t offset=0)
const {
return *
reinterpret_cast<const T*
>(data.data()+offset); }
37 const char *
c_str()
const {
return (
char*)data.data(); }
39 size_t size()
const {
return data.size(); }
Adds some functionality to boost::posix_time::ptime for our needs.
int getTimestampMillisecs()
const std::vector< char > data
const T & ref(uint32_t offset=0) const
const char * c_str() const
Time extract(DimInfo *inf) const
const T * ptr(uint32_t offset=0) const