v2.0.0
Loading...
Searching...
No Matches
fiff_dig_point.h
Go to the documentation of this file.
1//=============================================================================================================
32
33#ifndef FIFF_DIG_POINT_H
34#define FIFF_DIG_POINT_H
35
36//=============================================================================================================
37// INCLUDES
38//=============================================================================================================
39
40#include "fiff_global.h"
41#include "fiff_types.h"
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QSharedPointer>
48#include <QDebug>
49#include <memory>
50
51//=============================================================================================================
52// DEFINE NAMESPACE FIFFLIB
53//=============================================================================================================
54
55namespace FIFFLIB
56{
57
58//=============================================================================================================
68{
69public:
70 using SPtr = QSharedPointer<FiffDigPoint>;
71 using ConstSPtr = QSharedPointer<const FiffDigPoint>;
72 using UPtr = std::unique_ptr<FiffDigPoint>;
73 using ConstUPtr = std::unique_ptr<const FiffDigPoint>;
74
75 //=========================================================================================================
80
81 //=========================================================================================================
85 ~FiffDigPoint() = default;
86
87 //=========================================================================================================
93 inline static qint32 storageSize();
94
95public:
96 fiff_int_t kind;
97 fiff_int_t ident;
98 fiff_float_t r[3];
99 fiff_int_t coord_frame;
100};
101
102//=============================================================================================================
103// INLINE DEFINITIONS
104//=============================================================================================================
105
107{
108 return sizeof(FiffDigPoint::kind) + sizeof(FiffDigPoint::ident)
109 + sizeof(FiffDigPoint::r); // coord_frame is not part of on-disk format
110}
111} // NAMESPACE
112
113#endif // FIFF_DIG_POINT_H
Export/import macros and build-info accessors for the FIFFLIB shared library.
#define FIFFSHARED_EXPORT
Definition fiff_global.h:44
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
FIFF file I/O, in-memory data structures and high-level readers/writers.
static qint32 storageSize()
std::unique_ptr< const FiffDigPoint > ConstUPtr
std::unique_ptr< FiffDigPoint > UPtr
QSharedPointer< const FiffDigPoint > ConstSPtr
QSharedPointer< FiffDigPoint > SPtr