Bds::DataFileTapeDigitiser Class Reference

This class implements the TapeDigitiser's file output conversion and storeing system. More...

#include <BdsDataFileTapeDigitiser.h>

Inheritance diagram for Bds::DataFileTapeDigitiser:
Bds::DataFile

List of all members.

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)
 Get info on data.
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

Detailed Description

This class implements the TapeDigitiser's file output conversion and storeing system.


Constructor & Destructor Documentation

Bds::DataFileTapeDigitiser::DataFileTapeDigitiser (  ) 

Member Function Documentation

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]

Get list of supported formats.

Reimplemented from Bds::DataFile.

BError Bds::DataFileTapeDigitiser::getInfo ( DataInfo dataInfo,
ReadOptions  options,
BList< DataError > &  errors 
) [virtual]

Get info on data.

Reimplemented from Bds::DataFile.

BError Bds::DataFileTapeDigitiser::open ( BString  fileName,
BString  mode 
) [virtual]

Open the file for reading or writing.

Reimplemented from Bds::DataFile.

BError Bds::DataFileTapeDigitiser::readData ( BUInt32  channel,
BUInt  segment,
BUInt32  blockNumber,
DataBlock dataBlock 
) [virtual]

Read a block.

Reimplemented from Bds::DataFile.

BError Bds::DataFileTapeDigitiser::readHeader ( BDictString &  header  )  [private]

Read the file header info.


Member Data Documentation

Data block buffer.

BDictString Bds::DataFileTapeDigitiser::oheader [private]

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

Generated on 13 Aug 2012 for BdsApi by  doxygen 1.6.1