v2.0.0
Loading...
Searching...
No Matches
mne_raw_info.h
Go to the documentation of this file.
1//=============================================================================================================
36
37#ifndef MNERAWINFO_H
38#define MNERAWINFO_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "mne_global.h"
45
46#include <fiff/fiff_dir_node.h>
47#include <fiff/fiff_stream.h>
48
49//=============================================================================================================
50// STL INCLUDES
51//=============================================================================================================
52
53#include <memory>
54
55//=============================================================================================================
56// EIGEN INCLUDES
57//=============================================================================================================
58
59#include <Eigen/Core>
60
61//=============================================================================================================
62// QT INCLUDES
63//=============================================================================================================
64
65#include <QSharedPointer>
66#include <QList>
67
68//=============================================================================================================
69// FORWARD DECLARATIONS
70//=============================================================================================================
71
72namespace FIFFLIB { class FiffCoordTrans; }
73
74//=============================================================================================================
75// DEFINE NAMESPACE MNELIB
76//=============================================================================================================
77
78namespace MNELIB
79{
80
81//=============================================================================================================
86{
87public:
88 typedef QSharedPointer<MNERawInfo> SPtr;
89 typedef QSharedPointer<const MNERawInfo> ConstSPtr;
90
91 //=========================================================================================================
95 MNERawInfo();
96
97 //=========================================================================================================
101 ~MNERawInfo();
102
115
129
142
155
177 static int get_meas_info (FIFFLIB::FiffStream::SPtr& stream,
179 std::unique_ptr<FIFFLIB::FiffId>& id,
180 int *nchan,
181 float *sfreq,
182 float *highpass,
183 float *lowpass,
184 QList<FIFFLIB::FiffChInfo>& chp,
187
204 static int load(const QString& name, int allow_maxshield, std::unique_ptr<MNERawInfo>& infop);
205
206public:
207 QString filename;
208 std::unique_ptr<FIFFLIB::FiffId> id;
209 int nchan;
210 QList<FIFFLIB::FiffChInfo> chInfo;
214 std::unique_ptr<FIFFLIB::FiffCoordTrans> trans;
215 float sfreq;
216 float lowpass;
217 float highpass;
221 QList<FIFFLIB::FiffDirEntry::SPtr> rawDir;
222 int ndir;
223};
224
225//=============================================================================================================
226// INLINE DEFINITIONS
227//=============================================================================================================
228} // NAMESPACE MNELIB
229
230#endif // MNERAWINFO_H
FiffStream class declaration.
FiffDirNode class declaration, which provides fiff dir tree processing methods.
mne library export/import macros.
#define MNESHARED_EXPORT
Definition mne_global.h:52
Core MNE data structures (source spaces, source estimates, hemispheres).
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
Coordinate transformation description.
QSharedPointer< FiffDirNode > SPtr
QSharedPointer< FiffStream > SPtr
Time stamp record storing seconds and microseconds since epoch.
Definition fiff_time.h:61
FIFFLIB::FiffTime start_time
QList< FIFFLIB::FiffDirEntry::SPtr > rawDir
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)
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 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