VICUS Library
Documentation of Vicus library
Loading...
Searching...
No Matches
VICUS::BTFReader Class Reference

#include <VICUS_BTFReader.h>

Public Member Functions

 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)
 

Detailed Description

Data file reader for binary (*.btf) files

Constructor & Destructor Documentation

◆ BTFReader()

VICUS::BTFReader::BTFReader ( )

Member Function Documentation

◆ 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
fnameThe filename of a file to read the header data from.
captionsA vector with all column names (starting from column 1) without units, e.g. if column name "Temperature [C]" it would contain "Temperature"
valueUnitsA 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
fnameThe filename of a file to read the header data from.
timePointsA vector with all time points
valuesA vector with all other values of column 1..n, the vector is column major.
captionsA vector with all column names (starting from column 1) without units, e.g. if column name "Temperature [C]" it would contain "Temperature"
valueUnitsA vector with all according units, also starting from column 1

The documentation for this class was generated from the following files: