v2.0.0
Loading...
Searching...
No Matches
fiff_data_ref.h
Go to the documentation of this file.
1//=============================================================================================================
24
25#ifndef FIFF_DATA_REF_H
26#define FIFF_DATA_REF_H
27
28//=============================================================================================================
29// INCLUDES
30//=============================================================================================================
31
32#include "fiff_global.h"
33
34#include <QtGlobal>
35
36//=============================================================================================================
37// DEFINE NAMESPACE FIFFLIB
38//=============================================================================================================
39
40namespace FIFFLIB
41{
42
43//=============================================================================================================
55
57{
58public:
59 //=========================================================================================================
64 : type(0)
65 , endian(0)
66 , size(0)
67 , offset(0)
68 {
69 }
70
71 //=========================================================================================================
75 ~FiffDataRef() = default;
76
77 //=========================================================================================================
83 inline static qint32 storageSize();
84
85public:
86 qint32 type;
87 qint32 endian;
88 qint64 size;
89 qint64 offset;
90};
91
92//=============================================================================================================
93// BACKWARD COMPATIBILITY TYPEDEFS
94//=============================================================================================================
95
100
101//=============================================================================================================
102// INLINE DEFINITIONS
103//=============================================================================================================
104
106{
107 return sizeof(FiffDataRef::type) + sizeof(FiffDataRef::endian) + sizeof(FiffDataRef::size) + sizeof(FiffDataRef::offset);
108}
109
110} // NAMESPACE FIFFLIB
111
112#endif // FIFF_DATA_REF_H
Export/import macros and build-info accessors for the FIFFLIB shared library.
#define FIFFSHARED_EXPORT
Definition fiff_global.h:44
FIFF file I/O, in-memory data structures and high-level readers/writers.
FiffDataRef * fiffDataRef
Backward-compatible pointer typedef for the old fiffDataRef pointer.
FiffDataRef fiffDataRefRec
Backward-compatible typedef for the old fiffDataRefRec struct.
External data reference: type, endian, byte size and offset into an external FIFF payload file.
static qint32 storageSize()