BdsApi  3.0.5
This is the Blacknest BDS API.
BdsDataFileBdrs.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileBdrs.h BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2008-06-24
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileBdrs_H
7 #define BdsDataFileBdrs_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 class DataFileBdrs : public DataFile{
15 public:
16  DataFileBdrs();
17 
18  int getFeatures();
20 
21  BError getInfo(DataInfo& dataInfo, DataFileOptions options, BList<DataError>& errors);
22  BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& data);
23 
24  static DataFormats getFormats();
25 private:
26  BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data);
27 
28  int omagic;
29  int oyear;
30  int oblockYear;
31  BUInt32 oblockSize;
32  double osampleRate;
33  DataInfo odataInfo;
34  BArray<DataBlockPos> oblockPositions;
35 };
36 
37 }
38 #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:659
Data file convertor for BDRS format files.
Definition: BdsDataFileBdrs.h:14
static DataFormats getFormats()
Definition: BdsDataFileBdrs.cpp:18
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileBdrs.cpp:244
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileBdrs.cpp:44
DataFileBdrs()
Definition: BdsDataFileBdrs.cpp:28
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileBdrs.cpp:40
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileBdrs.cpp:36
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:592
Definition: BdsC.cc:8