BdsApi  3.0.12
This is the Blacknest BDS API.
BdsDataFileGcf.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileGcf.h BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2008-06-24
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileGcf_H
7 #define BdsDataFileGcf_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 struct GcfChannel {
21 };
22 
24 class DataFileGcf : public DataFile{
25 public:
26  DataFileGcf();
27 
28  int getFeatures();
31 
32  BError getInfo(DataInfo& dataInfo, DataFileOptions options, BList<DataError>& errors);
33  BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& data);
34 
35  static DataFormats getFormats();
36 private:
37  BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data, int addInfo, BUInt& dataChan);
38  DataError getBlockReorderInfo();
39 
40  BUInt32 oblockSize;
41  DataFileOptions ooptions;
42  DataInfo odataInfo;
43  BArray<GcfChannel> ochannels;
44  BArray<BArray<DataBlockPos> > oblockPositions;
45 };
46 
47 }
48 #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
This stores a data error. It includes and error number and a string as well as information on what se...
Definition: BdsLib.h:35
Data file convertor for GCF format files.
Definition: BdsDataFileGcf.h:24
static DataFormats getFormats()
Definition: BdsDataFileGcf.cpp:24
BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition: BdsDataFileGcf.cpp:45
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileGcf.cpp:37
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileGcf.cpp:41
DataFileGcf()
Definition: BdsDataFileGcf.cpp:32
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileGcf.cpp:345
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileGcf.cpp:118
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
DataFileGcf internal GCF channel information.
Definition: BdsDataFileGcf.h:14
BUInt type
Definition: BdsDataFileGcf.h:17
BString streamId
Definition: BdsDataFileGcf.h:16
BUInt32 channel
Definition: BdsDataFileGcf.h:20
BString systemId
Definition: BdsDataFileGcf.h:15
BUInt sampleRate
Definition: BdsDataFileGcf.h:18
BUInt format
Definition: BdsDataFileGcf.h:19