v2.0.0
Loading...
Searching...
No Matches
mne_raw_info.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef MNERAWINFO_H
20#define MNERAWINFO_H
21
22//=============================================================================================================
23// INCLUDES
24//=============================================================================================================
25
26#include "mne_global.h"
27
28#include <fiff/fiff_dir_node.h>
29#include <fiff/fiff_stream.h>
30
31//=============================================================================================================
32// STL INCLUDES
33//=============================================================================================================
34
35#include <memory>
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41#include <Eigen/Core>
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QSharedPointer>
48#include <QList>
49
50//=============================================================================================================
51// FORWARD DECLARATIONS
52//=============================================================================================================
53
54namespace FIFFLIB { class FiffCoordTrans; }
55
56//=============================================================================================================
57// DEFINE NAMESPACE MNELIB
58//=============================================================================================================
59
60namespace MNELIB
61{
62
63//=============================================================================================================
68{
69public:
70 typedef QSharedPointer<MNERawInfo> SPtr;
71 typedef QSharedPointer<const MNERawInfo> ConstSPtr;
72
73 //=========================================================================================================
77 MNERawInfo();
78
79 //=========================================================================================================
84
97
111
124
137
161 static int get_meas_info (FIFFLIB::FiffStream::SPtr& stream,
163 std::unique_ptr<FIFFLIB::FiffId>& id,
164 int *nchan,
165 float *sfreq,
166 float *highpass,
167 float *lowpass,
168 QList<FIFFLIB::FiffChInfo>& chp,
171
176 static int get_meas_info (FIFFLIB::FiffStream::SPtr& stream,
178 std::unique_ptr<FIFFLIB::FiffId>& id,
179 int *nchan,
180 float *sfreq,
181 float *highpass,
182 float *lowpass,
183 QList<FIFFLIB::FiffChInfo>& chp,
185
202 static int load(const QString& name, int allow_maxshield, std::unique_ptr<MNERawInfo>& infop);
203
204public:
205 QString filename;
206 std::unique_ptr<FIFFLIB::FiffId> id;
207 int nchan;
208 QList<FIFFLIB::FiffChInfo> chInfo;
212 std::unique_ptr<FIFFLIB::FiffCoordTrans> trans;
213 float sfreq;
214 float lowpass;
215 float highpass;
219 QList<FIFFLIB::FiffDirEntry::SPtr> rawDir;
220 int ndir;
221};
222
223//=============================================================================================================
224// INLINE DEFINITIONS
225//=============================================================================================================
226} // NAMESPACE MNELIB
227
228#endif // MNERAWINFO_H
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
Recursive node of the parsed FIFF block tree (FIFFB_* hierarchy with directory entries and children).
FIFF binary tag-stream layer: wraps a QIODevice to read and write FIFF tags, directories,...
Core MNE data structures (source spaces, source estimates, hemispheres).
FIFF file I/O, in-memory data structures and high-level readers/writers.
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.
QSharedPointer< FiffDirNode > SPtr
QSharedPointer< FiffStream > SPtr
FIFF time stamp: Unix seconds plus a microsecond fraction matching the on-disk fiffTimeRec record.
Definition fiff_time.h:50
FIFFLIB::FiffTime start_time
QList< FIFFLIB::FiffDirEntry::SPtr > rawDir
MNERawInfo()
Constructs a default MNERawInfo.
QSharedPointer< const MNERawInfo > ConstSPtr
static FIFFLIB::FiffDirNode::SPtr find_maxshield(const FIFFLIB::FiffDirNode::SPtr &node)
static FIFFLIB::FiffDirNode::SPtr find_meas_info(const FIFFLIB::FiffDirNode::SPtr &node)
QList< FIFFLIB::FiffChInfo > chInfo
static int load(const QString &name, int allow_maxshield, std::unique_ptr< MNERawInfo > &infop)
static int get_meas_info(FIFFLIB::FiffStream::SPtr &stream, FIFFLIB::FiffDirNode::SPtr &node, std::unique_ptr< FIFFLIB::FiffId > &id, int *nchan, float *sfreq, float *highpass, float *lowpass, QList< FIFFLIB::FiffChInfo > &chp, FIFFLIB::FiffCoordTrans &trans, FIFFLIB::FiffTime &start_time)
static FIFFLIB::FiffDirNode::SPtr find_raw(const FIFFLIB::FiffDirNode::SPtr &node)
static FIFFLIB::FiffDirNode::SPtr find_meas(const FIFFLIB::FiffDirNode::SPtr &node)
std::unique_ptr< FIFFLIB::FiffId > id
std::unique_ptr< FIFFLIB::FiffCoordTrans > trans
QSharedPointer< MNERawInfo > SPtr