Update to version 3.2
This commit is contained in:
@@ -16,19 +16,18 @@
|
||||
#ifndef GEMPA_CAPS_METAPACKET_H
|
||||
#define GEMPA_CAPS_METAPACKET_H
|
||||
|
||||
|
||||
#include <gempa/caps/api.h>
|
||||
#include <gempa/caps/packet.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
namespace Gempa {
|
||||
namespace CAPS {
|
||||
|
||||
struct SC_GEMPA_CAPS_API MetaResponseHeader {
|
||||
|
||||
struct SC_GEMPA_CAPS_API MetaResponseHeader {
|
||||
struct Time {
|
||||
int64_t seconds;
|
||||
int32_t microSeconds;
|
||||
@@ -95,15 +94,16 @@ class MetaDataRecord : public DataRecord {
|
||||
//! Returns the data vector to be filled by the caller
|
||||
Buffer *data();
|
||||
|
||||
virtual const char *formatName() const;
|
||||
DataRecord *clone() const override;
|
||||
const char *formatName() const override;
|
||||
|
||||
virtual bool readMetaData(std::streambuf &buf, int size,
|
||||
Header &header,
|
||||
Time &startTime, Time &endTime) {
|
||||
bool readMetaData(std::streambuf &buf, int size,
|
||||
Header &header,
|
||||
Time &startTime, Time &endTime) override {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual const Header *header() const;
|
||||
const Header *header() const override;
|
||||
|
||||
//! Sets a custom header and updates all internal structures
|
||||
//! based on the current data. If the data has changed, make
|
||||
@@ -111,23 +111,24 @@ class MetaDataRecord : public DataRecord {
|
||||
//! is set get will not read the header information from stream
|
||||
void setHeader(const MetaHeader &header);
|
||||
|
||||
virtual Time startTime() const;
|
||||
virtual Time endTime() const;
|
||||
Time startTime() const override;
|
||||
Time endTime() const override;
|
||||
|
||||
virtual bool canTrim() const { return false; }
|
||||
virtual bool canMerge() const { return false; }
|
||||
bool canTrim() const override { return false; }
|
||||
bool canMerge() const override { return false; }
|
||||
|
||||
virtual bool trim(const Time &start, const Time &end) const { return false; }
|
||||
bool trim(const Time &start, const Time &end) const override { return false; }
|
||||
|
||||
virtual size_t dataSize(bool withHeader) const;
|
||||
size_t dataSize(bool withHeader) const override;
|
||||
|
||||
virtual ReadStatus get(std::streambuf &buf, int size,
|
||||
const Time &start, const Time &end,
|
||||
int maxBytes);
|
||||
ReadStatus get(std::streambuf &buf, int size,
|
||||
const Time &start, const Time &end,
|
||||
int maxBytes) override;
|
||||
|
||||
virtual bool put(std::streambuf &buf, bool withHeader) const { return false; }
|
||||
bool put(std::streambuf &buf, bool withHeader) const override { return false; }
|
||||
|
||||
PacketType packetType() const override { return MetaDataPacket; }
|
||||
|
||||
PacketType packetType() const { return MetaDataPacket; }
|
||||
|
||||
private:
|
||||
MetaHeader _header;
|
||||
@@ -136,6 +137,7 @@ class MetaDataRecord : public DataRecord {
|
||||
mutable Time _endTime;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user