Electronics and Software
Engineering Innovation
BMeasure-lib  0.8.4

#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 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
 
BoapMc1Packetopacket
 

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()

BError BMeasureApi::DataFile::open ( BString  fileName,
BString  mode,
BString  format = "" 
)

Open the file for read or write.

◆ readData()

BError BMeasureApi::DataFile::readData ( DataBlock data)

Read a block of data.

◆ readInfo()

BError BMeasureApi::DataFile::readInfo ( BString format,
InfoBlock infoBlock,
ChannelConfigs channels 
)

◆ validateFormat()

BError BMeasureApi::DataFile::validateFormat ( BString  format)
private

◆ writeData()

BError BMeasureApi::DataFile::writeData ( DataBlock data)

Write a block of data.

◆ writeEnd()

BError BMeasureApi::DataFile::writeEnd ( )

◆ writeInfo()

BError BMeasureApi::DataFile::writeInfo ( const InfoBlock infoBlock,
const ChannelConfigs channels 
)

◆ writeInfoBMeas()

BError BMeasureApi::DataFile::writeInfoBMeas ( const InfoBlock infoBlock,
const ChannelConfigs channels 
)
private

◆ writeInfoCsv()

BError BMeasureApi::DataFile::writeInfoCsv ( const InfoBlock infoBlock,
const ChannelConfigs channels 
)
private

◆ writeInfoTdms()

BError BMeasureApi::DataFile::writeInfoTdms ( const InfoBlock infoBlock,
const ChannelConfigs channels 
)
private

Member Data Documentation

◆ ofile

BFile BMeasureApi::DataFile::ofile
private

◆ ofileName

BString BMeasureApi::DataFile::ofileName
private

◆ oformat

BString BMeasureApi::DataFile::oformat
private

◆ omode

BString BMeasureApi::DataFile::omode
private

◆ opacket

BoapMc1Packet* BMeasureApi::DataFile::opacket
private

◆ opacketLen

BUInt32 BMeasureApi::DataFile::opacketLen
private

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