BdsApi  2.0.11
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Bds::DataFileWraAgso Class Reference

#include <BdsDataFileWraAgso.h>

Inheritance diagram for Bds::DataFileWraAgso:
Bds::DataFile

Public Member Functions

 DataFileWraAgso ()
 
int getFeatures ()
 Get bitmask of supported features. More...
 
DataOrder getDataOrder ()
 Get the expected order of writing data, by sample or by channel. More...
 
BError getInfo (DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
 Get info on data. More...
 
BError readData (BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
 Read a block. More...
 
- Public Member Functions inherited from Bds::DataFile
 DataFile ()
 
virtual ~DataFile ()
 
virtual void init ()
 Initialise. More...
 
virtual BError open (BString fileName, BString mode)
 Open the file for read or write. More...
 
virtual BError close ()
 Close the file. More...
 
virtual BError setFormat (BString format)
 Set the sub-format. More...
 
virtual BString getFileName ()
 Return the file name. More...
 
virtual BError setInfo (DataInfo &dataInfo, ChannelInfos &channelInfos, WriteOptionsList options=WriteOptionNone)
 Set information on data for write. More...
 
virtual BError start (BUInt channel, BUInt segment)
 Start next segment of data. More...
 
virtual BError writeData (DataBlock &data)
 Write a block of data. More...
 
virtual BError end ()
 End segment. More...
 
virtual BError fileNameProcess ()
 Parse the file name for a date/time. More...
 
virtual BError getFormat (BString &format)
 Get sub-format. More...
 
virtual BError seekBlock (BUInt32 channel, BUInt segment, BTimeStamp time, BUInt32 &blockNumber, BUInt64 &sampleNumber, DataBlock &data)
 Find requested block on given channel given a time. More...
 
virtual BError getMetaData (ChannelInfos &channelInfos)
 Return all known MetaData in the file. More...
 
void dataErrorFixup (DataInfo &dataInfo, BList< DataError > &errors)
 Fixup data errors, mainly start/end times to be within data. More...
 
BInt64 timeCompare (BTimeStamp t1, BTimeStamp t2, BUInt diff)
 Compare timestamps with a margin. More...
 
int duplicateCheck (DataBlock &data1, DataBlock &data2, BUInt channel=0)
 Check if blocks are duplicates. More...
 
BUInt64 getFilePosition ()
 

Static Public Member Functions

static DataFormat getFormats ()
 
- Static Public Member Functions inherited from Bds::DataFile
static DataFormat getFormats ()
 Get list of supported formats. More...
 

Private Member Functions

BError readBlock (BUInt32 blockNumber, BString &channelheader, DataBlock &data)
 

Private Attributes

int oyear
 
int oblockYear
 
BUInt32 oblockSize
 
double osampleRate
 
DataInfo odataInfo
 
BArray< BUInt > ochannelStartBlocks
 
BUInt oreadChannel
 
BUInt oreadBlock
 
BUInt ocurrentBlock
 

Static Private Attributes

static int ofieldWidths [] = { 5, 10, 14, 7, 6, 7, 12, 10, 7, 7, 2, 3, 7, 11, 2, 31, 21, 11, 6, 3, 5, 0 }
 

Additional Inherited Members

- Public Types inherited from Bds::DataFile
enum  DataOrder { DataOrderUnknown, DataOrderAll, DataOrderSample, DataOrderChannel }
 
enum  Features { FeatureNone = 0x00, FeatureCanWrite = 0x01, FeatureCanRead = 0x02 }
 
enum  WriteOptionsList { WriteOptionNone = 0x00, WriteOptionSensorData = 0x01, WriteOptionNoMetadata = 0x02 }
 
enum  ReadOptionsList {
  ReadOptionNone = 0x00, ReadOptionValidate = 0x01, ReadOptionFileNameProcess = 0x02, ReadOptionValidateCorruptions = 0x04,
  ReadOptionReorder = 0x08, ReadOptionDeleteDuplicates = 0x10, ReadOptionInfoExtra = 0x20, ReadOptionIgnoreSamplerate = 0x40,
  ReadOptionPrintBlocks = 0x80
}
 
- Protected Attributes inherited from Bds::DataFile
BString ofileName
 
BString omode
 
BTimeStamp ofileNameTime
 
BFile ofile
 
BString oformat
 

Constructor & Destructor Documentation

§ DataFileWraAgso()

Bds::DataFileWraAgso::DataFileWraAgso ( )

Member Function Documentation

§ getDataOrder()

DataFile::DataOrder Bds::DataFileWraAgso::getDataOrder ( )
virtual

Get the expected order of writing data, by sample or by channel.

Reimplemented from Bds::DataFile.

§ getFeatures()

int Bds::DataFileWraAgso::getFeatures ( )
virtual

Get bitmask of supported features.

Reimplemented from Bds::DataFile.

§ getFormats()

DataFormat Bds::DataFileWraAgso::getFormats ( )
static

§ getInfo()

BError Bds::DataFileWraAgso::getInfo ( DataInfo dataInfo,
DataFileOptions  options,
BList< DataError > &  errors 
)
virtual

Get info on data.

Reimplemented from Bds::DataFile.

§ readBlock()

BError Bds::DataFileWraAgso::readBlock ( BUInt32  blockNumber,
BString &  channelheader,
DataBlock data 
)
private

§ readData()

BError Bds::DataFileWraAgso::readData ( BUInt32  channel,
BUInt  segment,
BUInt32  blockNumber,
DataBlock dataBlock 
)
virtual

Read a block.

Reimplemented from Bds::DataFile.

Member Data Documentation

§ oblockSize

BUInt32 Bds::DataFileWraAgso::oblockSize
private

§ oblockYear

int Bds::DataFileWraAgso::oblockYear
private

§ ochannelStartBlocks

BArray<BUInt> Bds::DataFileWraAgso::ochannelStartBlocks
private

§ ocurrentBlock

BUInt Bds::DataFileWraAgso::ocurrentBlock
private

§ odataInfo

DataInfo Bds::DataFileWraAgso::odataInfo
private

§ ofieldWidths

int Bds::DataFileWraAgso::ofieldWidths = { 5, 10, 14, 7, 6, 7, 12, 10, 7, 7, 2, 3, 7, 11, 2, 31, 21, 11, 6, 3, 5, 0 }
staticprivate

§ oreadBlock

BUInt Bds::DataFileWraAgso::oreadBlock
private

§ oreadChannel

BUInt Bds::DataFileWraAgso::oreadChannel
private

§ osampleRate

double Bds::DataFileWraAgso::osampleRate
private

§ oyear

int Bds::DataFileWraAgso::oyear
private

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