BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
TimesliceComponentDescriptor.h
Go to the documentation of this file.
1// Copyright 2013 Jan de Cuveland <cmail@cuveland.de>
2/// \file
3/// \brief Defines the fles::TimesliceComponentDescriptor serializable struct.
4#ifndef FLES_TIMESLICECOMPONENTDESCRIPTOR_H
5#define FLES_TIMESLICECOMPONENTDESCRIPTOR_H
6
7#include <boost/serialization/access.hpp>
8#include <cstdint>
9
10namespace fles
11{
12
13#pragma pack(1)
14
15/**
16 * \brief %Timeslice component descriptor struct.
17 */
19{
20 uint64_t ts_num; ///< Timeslice index.
21 uint64_t offset; ///< Start offset (in bytes) of corresponding data.
22 uint64_t size; ///< Size (in bytes) of corresponding data.
23 uint64_t num_microslices; ///< Number of microslices.
24
26 /// Provide boost serialization access.
27 template<class Archive>
28 void serialize(Archive& ar, const unsigned int /* version */)
29 {
30 ar & ts_num;
31 ar & offset;
32 ar & size;
33 ar & num_microslices;
34 }
35};
36
37#pragma pack()
38
39} // namespace fles
40
41#endif // FLES_TIMESLICECOMPONENTDESCRIPTOR_H
Main FLES namespace.
Timeslice component descriptor struct.
uint64_t num_microslices
Number of microslices.
friend class boost::serialization::access
uint64_t size
Size (in bytes) of corresponding data.
void serialize(Archive &ar, const unsigned int)
Provide boost serialization access.
uint64_t offset
Start offset (in bytes) of corresponding data.