v2.0.0
Loading...
Searching...
No Matches
mne_description_parser.h
Go to the documentation of this file.
1//=============================================================================================================
17
18#ifndef MNE_DESCRIPTION_PARSER_H
19#define MNE_DESCRIPTION_PARSER_H
20
21//=============================================================================================================
22// INCLUDES
23//=============================================================================================================
24
25#include "mne_global.h"
27
28#include <QString>
29#include <QTextStream>
30
31//=============================================================================================================
32// DEFINE NAMESPACE MNELIB
33//=============================================================================================================
34
35namespace MNELIB
36{
37
38//=============================================================================================================
51{
52public:
60 static bool parseAverageFile(const QString& fileName, FIFFLIB::AverageDescription& desc);
61
69 static bool parseCovarianceFile(const QString& fileName, CovDescription& desc);
70
71private:
75 static void skipComments(QTextStream& in);
76
81 static QString nextWord(QTextStream& in);
82
86 static bool getInt(QTextStream& in, int& val);
87
91 static bool getFloat(QTextStream& in, float& val);
92
97 static bool parseRejectionParam(const QString& keyword, QTextStream& in,
98 FIFFLIB::RejectionParams& rej, bool& ok);
99};
100
101} // namespace MNELIB
102
103#endif // MNE_DESCRIPTION_PARSER_H
Plain-old-data record describing one MNE-C .ave / .cov processing entry.
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).
Artifact-rejection thresholds for the MNE-C batch averaging pipeline (gradiometer / magnetometer / EE...
Top-level MNE-C ave-description record: comment, category list, shared rejection limits and output fi...
static bool parseCovarianceFile(const QString &fileName, CovDescription &desc)
static bool parseAverageFile(const QString &fileName, FIFFLIB::AverageDescription &desc)