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
55{
56class FiffCoordTrans;
57}
58
59//=============================================================================================================
60// DEFINE NAMESPACE MNELIB
61//=============================================================================================================
62
63namespace MNELIB
64{
65
66//=============================================================================================================
73{
74public:
75 typedef QSharedPointer<MNERawInfo> SPtr;
76 typedef QSharedPointer<const MNERawInfo> ConstSPtr;
77
78 //=========================================================================================================
82 MNERawInfo();
83
84 //=========================================================================================================
89
102
116
129
142
166 static int get_meas_info(FIFFLIB::FiffStream::SPtr& stream,
168 std::unique_ptr<FIFFLIB::FiffId>& id,
169 int* nchan,
170 float* sfreq,
171 float* highpass,
172 float* lowpass,
173 QList<FIFFLIB::FiffChInfo>& chp,
176
193 static int get_meas_info(FIFFLIB::FiffStream::SPtr& stream,
195 std::unique_ptr<FIFFLIB::FiffId>& id,
196 int* nchan,
197 float* sfreq,
198 float* highpass,
199 float* lowpass,
200 QList<FIFFLIB::FiffChInfo>& chp,
202
219 static int load(const QString& name, int allow_maxshield, std::unique_ptr<MNERawInfo>& infop);
220
221public:
222 QString filename;
223 std::unique_ptr<FIFFLIB::FiffId> id;
224 int nchan;
225 QList<FIFFLIB::FiffChInfo> chInfo;
229 std::unique_ptr<FIFFLIB::FiffCoordTrans> trans;
230 float sfreq;
231 float lowpass;
232 float highpass;
236 QList<FIFFLIB::FiffDirEntry::SPtr> rawDir;
237 int ndir;
238};
239
240//=============================================================================================================
241// INLINE DEFINITIONS
242//=============================================================================================================
243} // NAMESPACE MNELIB
244
245#endif // MNERAWINFO_H
FIFF binary tag-stream layer: wraps a QIODevice to read and write FIFF tags, directories,...
Recursive node of the parsed FIFF block tree (FIFFB_* hierarchy with directory entries and children).
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
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:52
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