#include <VICUS_BTFReader.h>
|
| BTFReader () |
|
void | parseHeaderData (const QString &fname, std::vector< std::string > &captions, std::vector< std::string > &valueUnits) |
|
void | readData (const QString &fname, IBK::UnitVector &timePoints, std::vector< std::vector< double > > &values, std::vector< std::string > &captions, std::vector< std::string > &valueUnits) |
|
Data file reader for binary (*.btf) files
◆ BTFReader()
VICUS::BTFReader::BTFReader |
( |
| ) |
|
◆ parseHeaderData()
void VICUS::BTFReader::parseHeaderData |
( |
const QString & |
fname, |
|
|
std::vector< std::string > & |
captions, |
|
|
std::vector< std::string > & |
valueUnits |
|
) |
| |
Attempts to reads a file header for a given file.
- Parameters
-
fname | The filename of a file to read the header data from. |
captions | A vector with all column names (starting from column 1) without units, e.g. if column name "Temperature [C]" it would contain "Temperature" |
valueUnits | A vector with all according units, also starting from column 1 |
◆ readData()
void VICUS::BTFReader::readData |
( |
const QString & |
fname, |
|
|
IBK::UnitVector & |
timePoints, |
|
|
std::vector< std::vector< double > > & |
values, |
|
|
std::vector< std::string > & |
captions, |
|
|
std::vector< std::string > & |
valueUnits |
|
) |
| |
Reads all data from file
- Parameters
-
fname | The filename of a file to read the header data from. |
timePoints | A vector with all time points |
values | A vector with all other values of column 1..n, the vector is column major. |
captions | A vector with all column names (starting from column 1) without units, e.g. if column name "Temperature [C]" it would contain "Temperature" |
valueUnits | A vector with all according units, also starting from column 1 |
The documentation for this class was generated from the following files: