BdsApi  3.0.12
This is the Blacknest BDS API.
BdsDataFileLac.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileLac.h LAC/BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2014-11-04
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileLac_H
7 #define BdsDataFileLac_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 class DataFileLac : public DataFile{
15 public:
16  DataFileLac();
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, BUInt64& posNext);
28 
29  int omagic;
30  int oyear;
31  int oblockYear;
32  BUInt32 oblockSize;
33  double osampleRate;
34  DataInfo odataInfo;
35  BArray<DataBlockPos> oblockPositions;
36  BUInt32 obadBlocks;
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 LAC format files.
Definition: BdsDataFileLac.h:14
static DataFormats getFormats()
Definition: BdsDataFileLac.cpp:19
BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition: BdsDataFileLac.cpp:44
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileLac.cpp:40
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileLac.cpp:267
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileLac.cpp:53
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileLac.cpp:36
DataFileLac()
Definition: BdsDataFileLac.cpp:27
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