mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-07 14:34:12 +02:00
Rename classes to new standard
Prefix all Buffer related classes with Buffer.
This commit is contained in:
@@ -7,9 +7,9 @@ const char JF_FORMAT_START_BYTE = 0xBE;
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct JFFileFormat {
|
||||
struct BufferBinaryFormat {
|
||||
|
||||
JFFileFormat() : FORMAT_MARKER(JF_FORMAT_START_BYTE) {};
|
||||
BufferBinaryFormat() : FORMAT_MARKER(JF_FORMAT_START_BYTE) {};
|
||||
|
||||
const char FORMAT_MARKER;
|
||||
uint64_t pulse_id;
|
||||
@@ -2,9 +2,9 @@
|
||||
#define BINARYWRITER_HPP
|
||||
|
||||
#include <string>
|
||||
#include "JFFileFormat.hpp"
|
||||
#include "BufferBinaryFormat.hpp"
|
||||
|
||||
class BinaryWriter {
|
||||
class BufferBinaryWriter {
|
||||
|
||||
const std::string device_name_;
|
||||
const std::string root_folder_;
|
||||
@@ -18,13 +18,13 @@ class BinaryWriter {
|
||||
|
||||
|
||||
public:
|
||||
BinaryWriter(
|
||||
BufferBinaryWriter(
|
||||
const std::string& device_name,
|
||||
const std::string& root_folder);
|
||||
|
||||
virtual ~BinaryWriter();
|
||||
virtual ~BufferBinaryWriter();
|
||||
|
||||
void write(const uint64_t pulse_id, const JFFileFormat* buffer);
|
||||
void write(const uint64_t pulse_id, const BufferBinaryFormat* buffer);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user