v2.0.0
Loading...
Searching...
No Matches
mne_description_parser.h
Go to the documentation of this file.
1//=============================================================================================================
36
37#ifndef MNE_DESCRIPTION_PARSER_H
38#define MNE_DESCRIPTION_PARSER_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "mne_global.h"
46
47#include <QString>
48#include <QTextStream>
49
50//=============================================================================================================
51// DEFINE NAMESPACE MNELIB
52//=============================================================================================================
53
54namespace MNELIB
55{
56
57//=============================================================================================================
68{
69public:
77 static bool parseAverageFile(const QString &fileName, AverageDescription &desc);
78
86 static bool parseCovarianceFile(const QString &fileName, CovDescription &desc);
87
88private:
92 static void skipComments(QTextStream &in);
93
98 static QString nextWord(QTextStream &in);
99
103 static bool getInt(QTextStream &in, int &val);
104
108 static bool getFloat(QTextStream &in, float &val);
109
114 static bool parseRejectionParam(const QString &keyword, QTextStream &in,
115 RejectionParams &rej, bool &ok);
116};
117
118} // namespace MNELIB
119
120#endif // MNE_DESCRIPTION_PARSER_H
mne library export/import macros.
#define MNESHARED_EXPORT
Definition mne_global.h:52
Data types for MNE-C style averaging and covariance description files. Ported from MNE-C browser_type...
Core MNE data structures (source spaces, source estimates, hemispheres).
static bool parseAverageFile(const QString &fileName, AverageDescription &desc)
static bool parseCovarianceFile(const QString &fileName, CovDescription &desc)