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//=============================================================================================================
53
55{
56public:
57 //=========================================================================================================
62 : type(0)
63 , endian(0)
64 , size(0)
65 , offset(0)
66 {
67 }
68
69 //=========================================================================================================
73 ~FiffDataRef() = default;
74
75 //=========================================================================================================
81 inline static qint32 storageSize();
82
83public:
84 qint32 type;
85 qint32 endian;
86 qint64 size;
87 qint64 offset;
88};
89
90//=============================================================================================================
91// BACKWARD COMPATIBILITY TYPEDEFS
92//=============================================================================================================
93
98
99//=============================================================================================================
100// INLINE DEFINITIONS
101//=============================================================================================================
102
104{
105 return sizeof(FiffDataRef::type) + sizeof(FiffDataRef::endian)
106 + sizeof(FiffDataRef::size) + sizeof(FiffDataRef::offset);
107}
108
109} // NAMESPACE FIFFLIB
110
111#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()