BdsApi  2.2.5
This is the Blacknest BDS API.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
BdsDataFileWra.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileWra.h BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2009-05-11
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileWra_H
7 #define BdsDataFileWra_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 class DataFileWra : public DataFile{
15 public:
16  DataFileWra();
17 
19  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 DataFormat getFormats();
26 private:
27  BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data);
28 
29  int omagic;
30  int oyear;
31  int oblockYear;
32  BUInt32 oblockSize;
33  BUInt32 onumChannels;
34  double osampleRate;
35  DataInfo odataInfo;
36  BArray<BUInt64> oblockPositions;
37 };
38 
39 }
40 #endif
DataOrder
Definition: BdsDataFile.h:43
Data file convertor for WRA format files.
Definition: BdsDataFileWra.h:14
uint64_t BUInt64
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileWra.cpp:68
This class defines information on a set of data.
Definition: BdsD.h:570
This holds information on a seismic data format.
Definition: BdsD.h:826
This class provides the acual seismic data values contained within a single data block.
Definition: BdsD.h:637
BUInt32 format
DataFileWra()
Definition: BdsDataFileWra.cpp:36
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileWra.cpp:64
This class defines the interface for generic data file access that all of the BDS data conterors shar...
Definition: BdsDataFile.h:41
BUInt32 BUInt
uint32_t BUInt32
char data[8]
static DataFormat getFormats()
Definition: BdsDataFileWra.cpp:18
BError setFormat(BString format)
Set the sub-format.
Definition: BdsDataFileWra.cpp:46
This defines a list of BDS data convtor options.
Definition: BdsDataFile.h:30
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileWra.cpp:72
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileWra.cpp:190