v2.0.0
Loading...
Searching...
No Matches
bids_event.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef BIDS_EVENT_H
36#define BIDS_EVENT_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "bids_global.h"
43
44//=============================================================================================================
45// QT INCLUDES
46//=============================================================================================================
47
48#include <QString>
49#include <QList>
50
51//=============================================================================================================
52// DEFINE NAMESPACE BIDSLIB
53//=============================================================================================================
54
55namespace BIDSLIB
56{
57
58//=============================================================================================================
66{
67 float onset{0.0f};
68 float duration{0.0f};
69 int sample{0};
70 int value{0};
71 QString trialType;
72
82 static QList<BidsEvent> readTsv(const QString& sFilePath);
83
91 static bool writeTsv(const QString& sFilePath,
92 const QList<BidsEvent>& events);
93};
94
95} // namespace BIDSLIB
96
97#endif // BIDS_EVENT_H
bids library export/import macros.
#define BIDSSHARED_EXPORT
Definition bids_global.h:55
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:66
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.