BdsApi 3.1.4
This is the Blacknest BDS API.
Loading...
Searching...
No Matches
BdsDataFileAd22.h
Go to the documentation of this file.
1/*******************************************************************************
2 * BdsDataFileAd22.h BDRS Data File Access
3 * T.Barnaby, BEAM Ltd, 2014-10-08
4 *******************************************************************************
5 */
6#ifndef BdsDataFileAd22_H
7#define BdsDataFileAd22_H
8
9#include <BdsDataFile.h>
10
11namespace Bds {
12
14class DataFileAd22 : public DataFile{
15public:
17
18 int getFeatures();
21
22 BError getInfo(DataInfo& dataInfo, DataFileOptions options, BList<DataError>& errors);
23 BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& data);
24
25 static DataFormats getFormats();
26private:
27 BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data);
28 BError getTimeCode(BTimeStamp startTime, BTimeStampMs& timeCode);
29
30 int omagic;
31 int oyear;
32 int oblockYear;
33 BUInt32 oblockSize;
34 double osampleRate;
35 DataInfo odataInfo;
36 BArray<DataBlockPos> oblockPositions;
37};
38
39}
40#endif
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
Data file convertor for AD22 format files.
Definition: BdsDataFileAd22.h:14
static DataFormats getFormats()
Definition: BdsDataFileAd22.cpp:21
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileAd22.cpp:38
DataFileAd22()
Definition: BdsDataFileAd22.cpp:30
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileAd22.cpp:54
BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition: BdsDataFileAd22.cpp:46
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileAd22.cpp:184
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileAd22.cpp:42
This defines a list of BDS data converter options.
Definition: BdsDataFile.h:30
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