BdsApi  3.0.6
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
BError
Bds::DataFileAd22::readData
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileAd22.cpp:184
Bds::DataFileAd22
Data file convertor for AD22 format files.
Definition: BdsDataFileAd22.h:14
Bds::DataFileOptions
This defines a list of BDS data converter options.
Definition: BdsDataFile.h:30
Bds::DataFileAd22::getFeatures
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileAd22.cpp:38
BdsDataFile.h
BUInt
BUInt32 BUInt
BArray
BUInt64
uint64_t BUInt64
Bds::DataBlock
This class provides the actual seismic data values contained within a single data block.
Definition: BdsD.h:697
BUInt32
uint32_t BUInt32
Bds::DataFileAd22::getDataOrder
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileAd22.cpp:42
Bds::DataFile::DataOrder
DataOrder
Definition: BdsDataFile.h:43
Bds::DataFileAd22::getFormats
static DataFormats getFormats()
Definition: BdsDataFileAd22.cpp:21
Bds
Definition: BdsC.cc:8
BString
Bds::DataFileAd22::getFixesInfo
BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition: BdsDataFileAd22.cpp:46
Bds::DataFileAd22::DataFileAd22
DataFileAd22()
Definition: BdsDataFileAd22.cpp:30
BTimeStampMs
Bds::DataInfo
This class defines information on a set of data.
Definition: BdsD.h:630
Bds::DataFileAd22::getInfo
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileAd22.cpp:54
Bds::DataFile
This class defines the interface for generic data file access that all of the BDS data converters sha...
Definition: BdsDataFile.h:41
data
char data[8]
BTimeStamp
BList