BdsApi  2.2.5
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();
30 
31  BError getInfo(DataInfo& dataInfo, DataFileOptions options, BList<DataError>& errors);
32  BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& data);
33 
34  static DataFormat getFormats();
35 private:
36  BError readBlock(BUInt32 channel, BUInt64 pos, DataBlock& data, int addInfo, BUInt& dataChan);
37  DataError getBlockReorderInfo();
38 
39  BUInt32 oblockSize;
40  DataFileOptions ooptions;
41  DataInfo odataInfo;
42  BArray<GcfChannel> ochannels;
43  BArray<BArray<DataBlockPos> > oblockPositions;
44 };
45 
46 }
47 #endif
DataOrder
Definition: BdsDataFile.h:43
BString systemId
Definition: BdsDataFileGcf.h:15
BUInt sampleRate
Definition: BdsDataFileGcf.h:18
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileGcf.cpp:116
BUInt type
Definition: BdsDataFileGcf.h:17
uint64_t BUInt64
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileGcf.cpp:42
This class defines information on a set of data.
Definition: BdsD.h:570
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileGcf.cpp:46
This holds information on a seismic data format.
Definition: BdsD.h:826
Data file convertor for GCF format files.
Definition: BdsDataFileGcf.h:24
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
BUInt32 BUInt
uint32_t BUInt32
char data[8]
DataFileGcf internal GCF channel information.
Definition: BdsDataFileGcf.h:14
BUInt32 channel
Definition: BdsDataFileGcf.h:20
BUInt format
Definition: BdsDataFileGcf.h:19
DataFileGcf()
Definition: BdsDataFileGcf.cpp:37
BString streamId
Definition: BdsDataFileGcf.h:16
This stores a data error. It includes and error number and a string as well as information on what se...
Definition: BdsLib.h:35
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileGcf.cpp:343
This defines a list of BDS data convtor options.
Definition: BdsDataFile.h:30
static DataFormat getFormats()
Definition: BdsDataFileGcf.cpp:24