BdsApi 3.1.4
This is the Blacknest BDS API.
Loading...
Searching...
No Matches
BdsDataFileWra.h
Go to the documentation of this file.
1/*******************************************************************************
2 * BdsDataFileWra.h BDRS Data File Access
3 * T.Barnaby, BEAM Ltd, 2009-05-11
4 *******************************************************************************
5 */
6#ifndef BdsDataFileWra_H
7#define BdsDataFileWra_H
8
9#include <BdsDataFile.h>
10
11namespace Bds {
12
14class DataFileWra : public DataFile{
15public:
17
19 int getFeatures();
22
23 BError getInfo(DataInfo& dataInfo, DataFileOptions options, BList<DataError>& errors);
24 BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& data);
25
26 static DataFormats getFormats();
27private:
28 BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data);
29
30 int omagic;
31 int oyear;
32 int oblockYear;
33 BUInt32 oblockSize;
34 BUInt32 onumChannels;
35 double osampleRate;
36 DataInfo odataInfo;
37 BArray<BUInt64> oblockPositions;
38};
39
40}
41#endif
BUInt32 format
BUInt32 BUInt
uint32_t BUInt32
uint64_t BUInt64
char data[8]
This class provides the actual Sensor data values contained within a single data block.
Definition: BdsD.h:707
This defines a list of BDS data converter options.
Definition: BdsDataFile.h:30
Data file convertor for WRA format files.
Definition: BdsDataFileWra.h:14
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileWra.cpp:59
static DataFormats getFormats()
Definition: BdsDataFileWra.cpp:18
DataFileWra()
Definition: BdsDataFileWra.cpp:27
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileWra.cpp:71
BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition: BdsDataFileWra.cpp:63
BError setFormat(BString format)
Set the sub-format.
Definition: BdsDataFileWra.cpp:37
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileWra.cpp:55
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileWra.cpp:189
This class defines the interface for generic data file access that all of the BDS data converters sha...
Definition: BdsDataFile.h:41
DataOrder
Definition: BdsDataFile.h:43
This class defines information on a set of data.
Definition: BdsD.h:640
Definition: BdsC.cc:8