BMeasure-lib 1.0.0 |
BMeasureApi::DataFile Class Reference
#include <DataFile.h>
Public Member Functions | |
DataFile () | |
~DataFile () | |
void | init () |
Initialise. More... | |
BError | open (BString fileName, BString mode, BString format="") |
Open the file for read or write. More... | |
BError | close () |
Close the file. More... | |
BString | getFileName () |
Return the file name. More... | |
BError | writeInfo (const InfoBlock &infoBlock, const ChannelConfigs &channels) |
BError | writeData (DataBlock *data) |
Write a block of data. More... | |
BError | writeData (DataBlockProc *data) |
Write a block of processed data. More... | |
BError | writeEnd () |
BError | readInfo (BString &format, InfoBlock &infoBlock, ChannelConfigs &channels) |
BError | readData (DataBlock *data) |
Read a block of data. More... | |
Private Member Functions | |
BError | validateFormat (BString format) |
BError | writeInfoCsv (const InfoBlock &infoBlock, const ChannelConfigs &channels) |
BError | writeInfoTdms (const InfoBlock &infoBlock, const ChannelConfigs &channels) |
BError | writeInfoBMeas (const InfoBlock &infoBlock, const ChannelConfigs &channels) |
Private Attributes | |
BString | ofileName |
BString | omode |
BString | oformat |
BFile | ofile |
BUInt32 | opacketLen |
BoapMc1Packet * | opacket |
Constructor & Destructor Documentation
◆ DataFile()
BMeasureApi::DataFile::DataFile | ( | ) |
◆ ~DataFile()
BMeasureApi::DataFile::~DataFile | ( | ) |
Member Function Documentation
◆ close()
BError BMeasureApi::DataFile::close | ( | ) |
Close the file.
◆ getFileName()
BString BMeasureApi::DataFile::getFileName | ( | ) |
Return the file name.
◆ init()
void BMeasureApi::DataFile::init | ( | ) |
Initialise.
◆ open()
Open the file for read or write.
◆ readData()
◆ readInfo()
BError BMeasureApi::DataFile::readInfo | ( | BString & | format, |
InfoBlock & | infoBlock, | ||
ChannelConfigs & | channels | ||
) |
◆ validateFormat()
◆ writeData() [1/2]
◆ writeData() [2/2]
BError BMeasureApi::DataFile::writeData | ( | DataBlockProc * | data | ) |
Write a block of processed data.
◆ writeEnd()
BError BMeasureApi::DataFile::writeEnd | ( | ) |
◆ writeInfo()
BError BMeasureApi::DataFile::writeInfo | ( | const InfoBlock & | infoBlock, |
const ChannelConfigs & | channels | ||
) |
◆ writeInfoBMeas()
| private |
◆ writeInfoCsv()
| private |
◆ writeInfoTdms()
| private |
Member Data Documentation
◆ ofile
| private |
◆ ofileName
| private |
◆ oformat
| private |
◆ omode
| private |
◆ opacket
| private |
◆ opacketLen
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.15