BmnRoot
Loading...
Searching...
No Matches
TimesliceDescriptor.h
Go to the documentation of this file.
1// Copyright 2013 Jan de Cuveland <cmail@cuveland.de>
4#pragma once
5
6#include <boost/serialization/access.hpp>
7#include <boost/serialization/version.hpp>
8#include <cstdint>
9
10namespace fles
11{
12
13#pragma pack(1)
14
19{
21 uint64_t index;
23 uint64_t ts_pos;
28
31 template<class Archive>
32 void serialize(Archive& ar, const unsigned int version)
33 {
34 if (version > 0) {
35 ar & index;
36 }
37 ar & ts_pos;
39 ar & num_components;
40 }
41};
42
43#pragma pack()
44
45} // namespace fles
46
47#pragma GCC diagnostic push
48#pragma GCC diagnostic ignored "-Wold-style-cast"
49BOOST_CLASS_VERSION(fles::TimesliceDescriptor, 1)
50#pragma GCC diagnostic pop
Main FLES namespace.
Timeslice descriptor struct.
uint64_t index
Global index of this timeslice.
friend class boost::serialization::access
void serialize(Archive &ar, const unsigned int version)
Provide boost serialization access.
uint32_t num_core_microslices
Number of core microslices.
uint64_t ts_pos
Start offset (in items) of this timeslice.
uint32_t num_components
Number of components (contributing input channels)