v2.0.0
Loading...
Searching...
No Matches
bids_event.h
Go to the documentation of this file.
1//=============================================================================================================
25
26#ifndef BIDS_EVENT_H
27#define BIDS_EVENT_H
28
29//=============================================================================================================
30// INCLUDES
31//=============================================================================================================
32
33#include "bids_global.h"
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39#include <QString>
40#include <QList>
41
42//=============================================================================================================
43// DEFINE NAMESPACE BIDSLIB
44//=============================================================================================================
45
46namespace BIDSLIB
47{
48
49//=============================================================================================================
57{
58 float onset{0.0f};
59 float duration{0.0f};
60 int sample{0};
61 int value{0};
62 QString trialType;
63
73 static QList<BidsEvent> readTsv(const QString& sFilePath);
74
82 static bool writeTsv(const QString& sFilePath,
83 const QList<BidsEvent>& events);
84};
85
86} // namespace BIDSLIB
87
88#endif // BIDS_EVENT_H
MNE-CPP BIDS library entry point: Qt symbol-visibility plumbing and the BIDSLIB namespace documentati...
#define BIDSSHARED_EXPORT
Definition bids_global.h:43
BIDS dataset reading, writing, path construction, and sidecar metadata handling for iEEG/EEG/MEG.
Single event annotation, typically parsed from or written to *_events.tsv.
Definition bids_event.h:57
static QList< BidsEvent > readTsv(const QString &sFilePath)
Read a BIDS *_events.tsv file.
static bool writeTsv(const QString &sFilePath, const QList< BidsEvent > &events)
Write a BIDS *_events.tsv file.