BdsApi 3.1.4
This is the Blacknest BDS API.
Loading...
Searching...
No Matches
BdsDataFileIms.h
Go to the documentation of this file.
1/*******************************************************************************
2 * BdsDataFileIms.h Data File Access
3 * T.Barnaby, BEAM Ltd, 2008-08-08
4 *******************************************************************************
5 */
6#ifndef BdsDataFileIms_H
7#define BdsDataFileIms_H
8
9#include <BdsDataFile.h>
10#include <BdsD.h>
11
12namespace Bds {
13
15class DataFileIms : public DataFile {
16public:
18
19 BError open(BString fileName, BString mode);
20 BError close();
21
23 int getFeatures();
24
25 BError setInfo(const DataInfo& dataInfo, const ChannelInfos& channelInfos, WriteOptionsList options = WriteOptionNone);
26 BError start(BUInt channel, BUInt segment);
28 BError end();
29
30 BError getMetaData(ChannelInfos& channelInfos, BUInt32 options, BList<DataError>& errors);
31
32 static DataFormats getFormats();
33private:
34 BError writeResponses();
35 BError writeResponse(ChannelInfo& ci, Response& r);
36
37 DataInfo odataInfo;
38 ChannelInfos ochannelInfos;
39 BUInt owriteChannel;
40 BInt32 owriteChecksum;
41 BUInt owriteColumn;
42
43 BInt32 oprevValue1;
44 BInt32 oprevValue2;
45};
46
47}
48#endif
BUInt32 BUInt
uint32_t BUInt32
int32_t BInt32
BOAP data class definitions for: Bds.
char data[8]
This class provides full Metadata information on a channel.
Definition: BdsD.h:542
This class provides Metadata information on a set of channels.
Definition: BdsD.h:564
This class provides the actual Sensor data values contained within a single data block.
Definition: BdsD.h:707
Data file convertor for IMS format files.
Definition: BdsDataFileIms.h:15
DataFileIms()
Definition: BdsDataFileIms.cpp:233
BError getMetaData(ChannelInfos &channelInfos, BUInt32 options, BList< DataError > &errors)
Return all known MetaData in the file.
Definition: BdsDataFileIms.cpp:641
BError close()
Close the file.
Definition: BdsDataFileIms.cpp:253
BError start(BUInt channel, BUInt segment)
Start writing next segment of data.
Definition: BdsDataFileIms.cpp:292
BError setInfo(const DataInfo &dataInfo, const ChannelInfos &channelInfos, WriteOptionsList options=WriteOptionNone)
Set information on data for write.
Definition: BdsDataFileIms.cpp:257
BError open(BString fileName, BString mode)
Open the file for read or write.
Definition: BdsDataFileIms.cpp:241
int getFeatures()
Get bitmask of supported features.
Definition: BdsDataFileIms.cpp:288
static DataFormats getFormats()
Definition: BdsDataFileIms.cpp:38
BError end()
End write segment.
Definition: BdsDataFileIms.cpp:376
BError writeData(const DataBlock &data)
Write a block of data.
Definition: BdsDataFileIms.cpp:390
DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition: BdsDataFileIms.cpp:284
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
WriteOptionsList
Definition: BdsDataFile.h:45
@ WriteOptionNone
Definition: BdsDataFile.h:45
This class defines information on a set of data.
Definition: BdsD.h:640
This class defines a seismic Response characteristic.
Definition: BdsD.h:311
Definition: BdsC.cc:8