v2.0.0
Loading...
Searching...
No Matches
fiff_data_ref.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef FIFF_DATA_REF_H
36#define FIFF_DATA_REF_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "fiff_global.h"
43
44#include <QtGlobal>
45
46//=============================================================================================================
47// DEFINE NAMESPACE FIFFLIB
48//=============================================================================================================
49
50namespace FIFFLIB
51{
52
53//=============================================================================================================
60
62{
63public:
64 //=========================================================================================================
69 : type(0)
70 , endian(0)
71 , size(0)
72 , offset(0)
73 {
74 }
75
76 //=========================================================================================================
80 ~FiffDataRef() = default;
81
82 //=========================================================================================================
88 inline static qint32 storageSize();
89
90public:
91 qint32 type;
92 qint32 endian;
93 qint64 size;
94 qint64 offset;
95};
96
97//=============================================================================================================
98// BACKWARD COMPATIBILITY TYPEDEFS
99//=============================================================================================================
100
105
106//=============================================================================================================
107// INLINE DEFINITIONS
108//=============================================================================================================
109
111{
112 return sizeof(FiffDataRef::type) + sizeof(FiffDataRef::endian)
113 + sizeof(FiffDataRef::size) + sizeof(FiffDataRef::offset);
114}
115
116} // NAMESPACE FIFFLIB
117
118#endif // FIFF_DATA_REF_H
Fiff library export/import macros.
#define FIFFSHARED_EXPORT
Definition fiff_global.h:52
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
FiffDataRef * fiffDataRef
Backward-compatible pointer typedef for the old fiffDataRef pointer.
FiffDataRef fiffDataRefRec
Backward-compatible typedef for the old fiffDataRefRec struct.
External data reference descriptor.
static qint32 storageSize()