#include <BdsDataFileTapeDigitiser.h>
Inheritance diagram for Bds::DataFileTapeDigitiser:
Public Member Functions | |
DataFileTapeDigitiser () | |
BError | open (BString fileName, BString mode) |
Open the file for reading or writing. | |
BError | getInfo (DataInfo &dataInfo, ReadOptions options, BList< DataError > &errors) |
BError | readData (BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data) |
Read a block. | |
Static Public Member Functions | |
static DataFormat | getFormats () |
Get list of supported formats. | |
Private Member Functions | |
uint32_t | blockSize () |
Returns the data block size in bytes. | |
uint32_t | blockNumSamples () |
Returns the number of samples of data in a block. | |
BError | readHeader (BDictString &header) |
Read the file header info. | |
uint32_t | computeChecksum (void *data, int nBytes) |
Private Attributes | |
BDictString | oheader |
off64_t | oheaderSize |
uint32_t | oblockSize |
uint32_t | oblockNumSamples |
double | osampleRate |
BBuffer | obuffer |
Data block buffer. | |
BString | oversion |
DataInfo | odataInfo |
Bds::DataFileTapeDigitiser::DataFileTapeDigitiser | ( | ) |
uint32_t Bds::DataFileTapeDigitiser::blockNumSamples | ( | ) | [private] |
Returns the number of samples of data in a block.
uint32_t Bds::DataFileTapeDigitiser::blockSize | ( | ) | [private] |
Returns the data block size in bytes.
uint32_t Bds::DataFileTapeDigitiser::computeChecksum | ( | void * | data, | |
int | nBytes | |||
) | [private] |
DataFormat Bds::DataFileTapeDigitiser::getFormats | ( | ) | [static] |
BError Bds::DataFileTapeDigitiser::getInfo | ( | DataInfo & | dataInfo, | |
ReadOptions | options, | |||
BList< DataError > & | errors | |||
) |
BError Bds::DataFileTapeDigitiser::open | ( | BString | fileName, | |
BString | mode | |||
) | [virtual] |
BError Bds::DataFileTapeDigitiser::readData | ( | BUInt32 | channel, | |
BUInt | segment, | |||
BUInt32 | blockNumber, | |||
DataBlock & | data | |||
) | [virtual] |
BError Bds::DataFileTapeDigitiser::readHeader | ( | BDictString & | header | ) | [private] |
Read the file header info.
uint32_t Bds::DataFileTapeDigitiser::oblockNumSamples [private] |
uint32_t Bds::DataFileTapeDigitiser::oblockSize [private] |
BBuffer Bds::DataFileTapeDigitiser::obuffer [private] |
Data block buffer.
BDictString Bds::DataFileTapeDigitiser::oheader [private] |
off64_t Bds::DataFileTapeDigitiser::oheaderSize [private] |
double Bds::DataFileTapeDigitiser::osampleRate [private] |
BString Bds::DataFileTapeDigitiser::oversion [private] |