Generic BIDS TSV file I/O. More...
#include <bids_tsv.h>
Public Types | |
| using | SPtr = QSharedPointer<BidsTsv> |
Public Member Functions | |
| BidsTsv () | |
| ~BidsTsv () | |
Static Public Member Functions | |
| static QList< BidsTsvRow > | readTsv (const QString &sFilePath, QStringList &headers) |
| static bool | writeTsv (const QString &sFilePath, const QStringList &headers, const QList< BidsTsvRow > &rows) |
Generic BIDS TSV file I/O.
Generic BIDS TSV file reader/writer.
BIDS TSV files are tab-separated value files with:
Domain-specific TSV I/O (channels, electrodes, events) is handled by BidsChannel, BidsElectrode, and BidsEvent respectively.
Definition at line 81 of file bids_tsv.h.
| using BIDSLIB::BidsTsv::SPtr = QSharedPointer<BidsTsv> |
Definition at line 84 of file bids_tsv.h.
| BidsTsv::BidsTsv | ( | ) |
Definition at line 70 of file bids_tsv.cpp.
| BidsTsv::~BidsTsv | ( | ) |
Definition at line 76 of file bids_tsv.cpp.
|
static |
Reads a TSV file into an ordered list of row maps.
| [in] | sFilePath | Path to the TSV file. |
| [out] | headers | Column names from the header row. |
Definition at line 82 of file bids_tsv.cpp.
|
static |
Writes rows to a TSV file.
| [in] | sFilePath | Output file path. |
| [in] | headers | Column names (determines column order). |
| [in] | rows | Data rows. |
Definition at line 123 of file bids_tsv.cpp.