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//=============================================================================================================
49{
50public:
58 static bool parseAverageFile(const QString &fileName, AverageDescription &desc);
59
67 static bool parseCovarianceFile(const QString &fileName, CovDescription &desc);
68
69private:
73 static void skipComments(QTextStream &in);
74
79 static QString nextWord(QTextStream &in);
80
84 static bool getInt(QTextStream &in, int &val);
85
89 static bool getFloat(QTextStream &in, float &val);
90
95 static bool parseRejectionParam(const QString &keyword, QTextStream &in,
96 RejectionParams &rej, bool &ok);
97};
98
99} // namespace MNELIB
100
101#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).
Top-level MNE-C ave-description record: comment, category list, shared rejection limits and output fi...
static bool parseAverageFile(const QString &fileName, AverageDescription &desc)
static bool parseCovarianceFile(const QString &fileName, CovDescription &desc)