BdsApi  2.2.2
This is the Blacknest BDS API.
BdsDataFileWraAgso.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileWraAgso.h BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2009-05-11
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileWraAgso_H
7 #define BdsDataFileWraAgso_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 class DataFileWraAgso : public DataFile{
15 public:
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 DataFormat getFormats();
25 private:
26  BError readBlock(BUInt32 blockNumber, BString& channelheader, DataBlock& data);
27  int oyear;
28  int oblockYear;
29  BUInt32 oblockSize;
30  double osampleRate;
31  DataInfo odataInfo;
32  BArray<BUInt> ochannelStartBlocks;
33  BUInt oreadChannel;
34  BUInt oreadBlock;
35  BUInt ocurrentBlock;
36  static int ofieldWidths[];
37 };
38 
39 }
40 #endif
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileWraAgso.cpp:67
DataOrder
Definition: BdsDataFile.h:43
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileWraAgso.cpp:59
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileWraAgso.cpp:217
This class defines information on a set of data.
Definition: BdsD.h:570
Data file convertor for WRA AGSO format files.
Definition: BdsDataFileWraAgso.h:14
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
Definition: BdsC.cc:8
This class defines the interface for generic data file access that all of the BDS data conterors shar...
Definition: BdsDataFile.h:41
DataFileWraAgso()
Definition: BdsDataFileWraAgso.cpp:48
BUInt32 BUInt
uint32_t BUInt32
char data[8]
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileWraAgso.cpp:63
static DataFormat getFormats()
Definition: BdsDataFileWraAgso.cpp:33
This defines a list of BDS data convtor options.
Definition: BdsDataFile.h:30