BdsApi  3.0.12
This is the Blacknest BDS API.
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 
11 namespace Bds {
12 
14 class DataFileAd22 : public DataFile{
15 public:
16  DataFileAd22();
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();
26 private:
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 seismic data values contained within a single data block.
Definition: BdsD.h:699
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:632
Definition: BdsC.cc:8