BdsApi  2.2.7
This is the Blacknest BDS API.
BdsDataFileLac.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsDataFileLac.h LAC/BDRS Data File Access
3  * T.Barnaby, BEAM Ltd, 2014-11-04
4  *******************************************************************************
5  */
6 #ifndef BdsDataFileLac_H
7 #define BdsDataFileLac_H
8 
9 #include <BdsDataFile.h>
10 
11 namespace Bds {
12 
14 class DataFileLac : public DataFile{
15 public:
16  DataFileLac();
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 channel, BUInt64 pos, DataBlock& data, BUInt64& posNext);
27 
28  int omagic;
29  int oyear;
30  int oblockYear;
31  BUInt32 oblockSize;
32  double osampleRate;
33  DataInfo odataInfo;
34  BArray<DataBlockPos> oblockPositions;
35  BUInt32 obadBlocks;
36 };
37 
38 }
39 #endif
BError
Bds::DataFileOptions
This defines a list of BDS data convtor options.
Definition: BdsDataFile.h:30
BdsDataFile.h
BUInt
BUInt32 BUInt
BArray
BUInt64
uint64_t BUInt64
Bds::DataBlock
This class provides the acual seismic data values contained within a single data block.
Definition: BdsD.h:640
BUInt32
uint32_t BUInt32
Bds::DataFile::DataOrder
DataOrder
Definition: BdsDataFile.h:43
Bds
Definition: BdsC.cc:8
Bds::DataFileLac::readData
BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &data)
Read a block.
Definition: BdsDataFileLac.cpp:263
Bds::DataFileLac::getInfo
BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition: BdsDataFileLac.cpp:48
Bds::DataFileLac::getFeatures
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileLac.cpp:40
Bds::DataInfo
This class defines information on a set of data.
Definition: BdsD.h:573
Bds::DataFormat
This holds information on a seismic data format.
Definition: BdsD.h:829
Bds::DataFile
This class defines the interface for generic data file access that all of the BDS data conterors shar...
Definition: BdsDataFile.h:41
Bds::DataFileLac::getFormats
static DataFormat getFormats()
Definition: BdsDataFileLac.cpp:19
data
char data[8]
Bds::DataFileLac::getDataOrder
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileLac.cpp:44
Bds::DataFileLac
Data file convertor for LAC format files.
Definition: BdsDataFileLac.h:14
BList
Bds::DataFileLac::DataFileLac
DataFileLac()
Definition: BdsDataFileLac.cpp:31