BMeasure-lib 1.1.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 (DataBlockFloat *data) |
Write a block of processed 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 |
BUInt | ofileType |
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/3]
◆ writeData() [2/3]
BError BMeasureApi::DataFile::writeData | ( | DataBlockFloat * | data | ) |
Write a block of processed data.
◆ writeData() [3/3]
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 |
◆ ofileType
| private |
◆ oformat
| private |
◆ omode
| private |
◆ opacket
| private |
◆ opacketLen
| private |
The documentation for this class was generated from the following files:
Generated by 1.9.5