mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 23:54:36 +02:00
Add binary writer stubs
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef BINARYWRITER_HPP
|
||||
#define BINARYWRITER_HPP
|
||||
|
||||
#include <string>
|
||||
#include "JFFileFormat.hpp"
|
||||
|
||||
class BinaryWriter {
|
||||
|
||||
const std::string device_name_;
|
||||
const std::string root_folder_;
|
||||
|
||||
public:
|
||||
BinaryWriter(
|
||||
const std::string& device_name,
|
||||
const std::string& root_folder);
|
||||
|
||||
void write(uint64_t pulse_id, const JFFileFormat& buffer);
|
||||
|
||||
void close();
|
||||
};
|
||||
|
||||
|
||||
#endif //BINARYWRITER_HPP
|
||||
@@ -0,0 +1,20 @@
|
||||
#include "BinaryWriter.hpp"
|
||||
|
||||
BinaryWriter::BinaryWriter(
|
||||
const std::string& device_name,
|
||||
const std::string& root_folder) :
|
||||
device_name_(device_name),
|
||||
root_folder_(root_folder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void BinaryWriter::write(uint64_t pulse_id, const JFFileFormat& buffer)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void BinaryWriter::close()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user