#include <BdsDataFileLog.h>
Public Member Functions | |
DataFileLog () | |
BError | open (BString fileName, BString mode) |
Open the file for read or write. | |
DataOrder | getDataOrder () |
Get the expected order of writing data, by sample or by channel. | |
int | getFeatures () |
Get bitmask of supported features. | |
BError | getInfo (DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors) |
Get info on data. | |
BError | readData (BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data) |
Read a block. | |
BError | setFormat (BString format) |
Set the sub-format. | |
BError | setInfo (DataInfo &dataInfo, ChannelInfos &channelInfos, WriteOptionsList options=WriteOptionSensorData) |
Set information on data for write. | |
BError | start (BUInt channel, BUInt segment) |
Start next segment of data. | |
BError | writeData (DataBlock &data) |
Write a block of data. | |
BError | end () |
End segment. | |
Static Public Member Functions | |
static DataFormat | getFormats () |
Get list of supported formats. | |
Private Member Functions | |
BError | readBlock (BUInt32 channel, BUInt64 pos, DataBlock &data, BUInt64 &posNext) |
Private Attributes | |
DataInfo | odataInfo |
ChannelInfos | ochannelInfos |
BString | oformat |
BArray< DataBlockPos > | oblockPositions |
Bds::DataFileLog::DataFileLog | ( | ) |
BError Bds::DataFileLog::end | ( | ) | [virtual] |
End segment.
Reimplemented from Bds::DataFile.
DataFile::DataOrder Bds::DataFileLog::getDataOrder | ( | ) | [virtual] |
Get the expected order of writing data, by sample or by channel.
Reimplemented from Bds::DataFile.
int Bds::DataFileLog::getFeatures | ( | ) | [virtual] |
Get bitmask of supported features.
Reimplemented from Bds::DataFile.
DataFormat Bds::DataFileLog::getFormats | ( | ) | [static] |
Get list of supported formats.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::getInfo | ( | DataInfo & | dataInfo, | |
DataFileOptions | options, | |||
BList< DataError > & | errors | |||
) | [virtual] |
Get info on data.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::open | ( | BString | fileName, | |
BString | mode | |||
) | [virtual] |
Open the file for read or write.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::readBlock | ( | BUInt32 | channel, | |
BUInt64 | pos, | |||
DataBlock & | data, | |||
BUInt64 & | posNext | |||
) | [private] |
BError Bds::DataFileLog::readData | ( | BUInt32 | channel, | |
BUInt | segment, | |||
BUInt32 | blockNumber, | |||
DataBlock & | dataBlock | |||
) | [virtual] |
Read a block.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::setFormat | ( | BString | format | ) | [virtual] |
Set the sub-format.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::setInfo | ( | DataInfo & | dataInfo, | |
ChannelInfos & | channelInfos, | |||
WriteOptionsList | options = WriteOptionSensorData | |||
) | [virtual] |
Set information on data for write.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::start | ( | BUInt | channel, | |
BUInt | segment | |||
) | [virtual] |
Start next segment of data.
Reimplemented from Bds::DataFile.
BError Bds::DataFileLog::writeData | ( | DataBlock & | data | ) | [virtual] |
Write a block of data.
Reimplemented from Bds::DataFile.
BArray<DataBlockPos> Bds::DataFileLog::oblockPositions [private] |
ChannelInfos Bds::DataFileLog::ochannelInfos [private] |
DataInfo Bds::DataFileLog::odataInfo [private] |
BString Bds::DataFileLog::oformat [private] |
Reimplemented from Bds::DataFile.