Account
BdsApi 4.0.1 This is the Blacknest BDS API. |
Loading...
Searching...
No Matches
BdsDataFile.h
Go to the documentation of this file.
19 DataBlockPos(BTimeStamp startTime = 0, BTimeStamp endTime = 0, BUInt64 position = 0, BUInt order = 0, int ref = 0, BUInt numSamples = 0) : startTime(startTime), endTime(endTime), position(position), order(order), ref(ref), numSamples(numSamples){}
45 enum WriteOptionsList { WriteOptionNone = 0x00, WriteOptionSensorData = 0x01, WriteOptionNoMetadata = 0x02 };
46 enum ReadOptionsList { ReadOptionNone = 0x00, ReadOptionValidate = 0x01, ReadOptionFileNameProcess = 0x02, ReadOptionFixCorruptions = 0x04, ReadOptionReorder = 0x08, ReadOptionDeleteDuplicates = 0x10, ReadOptionInfoExtra = 0x20, ReadOptionIgnoreSamplerate = 0x40, ReadOptionPrintBlocks = 0x80, ReadOptionFixSampleRate = 0x100 };
63 virtual BError setInfo(const DataInfo& dataInfo, const ChannelInfos& channelInfos, WriteOptionsList options = WriteOptionNone);
73 virtual BError seekBlock(BUInt32 channel, BUInt segment, BTimeStamp time, BUInt32& blockNumber, BUInt64& sampleNumber, DataBlock& data);
74 virtual BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock& dataBlock);
76 virtual BError getMetaData(ChannelInfos& channelInfos, BUInt32 options, BList<DataError>& errors);
BUInt32 BUInt
uint32_t BUInt32
int64_t BInt64
uint64_t BUInt64
BOAP data class definitions for: Bds.
General BdsLib API functions.
This class provides Metadata information on a set of channels.
Definition BdsD.h:566
This defines the position of a data block in a file. It is used by the BDS data converters to order b...
Definition BdsDataFile.h:17
DataBlockPos(BTimeStamp startTime=0, BTimeStamp endTime=0, BUInt64 position=0, BUInt order=0, int ref=0, BUInt numSamples=0)
Definition BdsDataFile.h:19
This class provides the actual Sensor data values contained within a single data block.
Definition BdsD.h:710
This class defines the interface for generic data file access that all of the BDS data converters sha...
Definition BdsDataFile.h:41
int duplicateCheck(const DataBlock &data1, const DataBlock &data2, BUInt channel=0)
Check if blocks are duplicates.
Definition BdsDataFile.cpp:207
virtual BError getInfo(DataInfo &dataInfo, DataFileOptions options, BList< DataError > &errors)
Get info on data.
Definition BdsDataFile.cpp:107
virtual BError getFormat(BString &format)
Get sub-format.
Definition BdsDataFile.cpp:99
virtual BError writeData(const DataBlock &data)
Write a block of data.
Definition BdsDataFile.cpp:77
BInt64 timeCompare(BTimeStamp t1, BTimeStamp t2, BUInt diff)
Compare timestamps with a margin.
Definition BdsDataFile.cpp:198
virtual int getFeatures()
Get bitmask of supported features.
Definition BdsDataFile.cpp:42
void dataErrorFixup(const DataInfo &dataInfo, BList< DataError > &errors)
Fixup data errors, mainly start/end times to be within data.
Definition BdsDataFile.cpp:189
virtual BString getFileName()
Return the file name.
Definition BdsDataFile.cpp:34
virtual BError seekBlock(BUInt32 channel, BUInt segment, BTimeStamp time, BUInt32 &blockNumber, BUInt64 &sampleNumber, DataBlock &data)
Find requested block on given channel given a time.
Definition BdsDataFile.cpp:115
virtual BError open(BString fileName, BString mode)
Open the file for read or write.
Definition BdsDataFile.cpp:20
virtual BError getMetaData(ChannelInfos &channelInfos, BUInt32 options, BList< DataError > &errors)
Return all known MetaData in the file.
Definition BdsDataFile.cpp:131
virtual BError setInfo(const DataInfo &dataInfo, const ChannelInfos &channelInfos, WriteOptionsList options=WriteOptionNone)
Set information on data for write.
Definition BdsDataFile.cpp:63
virtual BError fileNameProcess()
Parse the file name for a date/time.
Definition BdsDataFile.cpp:137
virtual BError start(BUInt channel, BUInt segment)
Start writing next segment of data.
Definition BdsDataFile.cpp:71
void getNotices(BStringList ¬ices)
Get a list of any notices.
Definition BdsDataFile.cpp:50
virtual BError setFormat(BString format)
Set the sub-format.
Definition BdsDataFile.cpp:55
virtual BError readData(BUInt32 channel, BUInt segment, BUInt32 blockNumber, DataBlock &dataBlock)
Read a block.
Definition BdsDataFile.cpp:123
static DataFormats getFormats()
Get list of supported formats.
Definition BdsDataFile.cpp:251
virtual DataOrder getDataOrder()
Get the expected order of writing data, by sample or by channel.
Definition BdsDataFile.cpp:38
virtual BString getFixesInfo()
Get readable list of fixes that can be applied to faulty data files.
Definition BdsDataFile.cpp:46
Definition BdsC.cc:8
Generated by