BidsTsv
Namespace: BIDSLIB · Library: BIDS Library
#include <bids/bids_tsv.h>
class BIDSLIB::BidsTsv
Generic BIDS TSV file reader/writer.
BIDS TSV files are tab-separated value files with: A mandatory header row defining column names.
"n/a" for missing values.
UTF-8 encoding, LF line endings.
Domain-specific TSV I/O (channels, electrodes, events) is handled by BidsChannel, BidsElectrode, and BidsEvent respectively.
Generic BIDS TSV file I/O.
Public Methods
BidsTsv()
~BidsTsv()
Static Methods
readTsv(sFilePath, headers)
Reads a TSV file into an ordered list of row maps.
Parameters:
-
sFilePath : const QString & Path to the TSV file.
-
headers : QStringList & Column names from the header row.
Returns:
- QList< BidsTsvRow > — List of rows, each row a map of column-name → value.
writeTsv(sFilePath, headers, rows)
Writes rows to a TSV file.
Parameters:
-
sFilePath : const QString & Output file path.
-
headers : const QStringList & Column names (determines column order).
-
rows : const QList< BidsTsvRow > & Data rows.
Returns:
- bool — true on success, false on I/O error.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>