From 1e04775a918bd4adcf97af7cccf431dca514daa7 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 17 Apr 2020 10:10:16 +0200 Subject: [PATCH] Add binary writer stubs --- core-buffer/include/BinaryWriter.hpp | 23 +++++++++++++++++++++++ core-buffer/src/BinaryWriter.cpp | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 core-buffer/include/BinaryWriter.hpp create mode 100644 core-buffer/src/BinaryWriter.cpp diff --git a/core-buffer/include/BinaryWriter.hpp b/core-buffer/include/BinaryWriter.hpp new file mode 100644 index 0000000..a039294 --- /dev/null +++ b/core-buffer/include/BinaryWriter.hpp @@ -0,0 +1,23 @@ +#ifndef BINARYWRITER_HPP +#define BINARYWRITER_HPP + +#include +#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 diff --git a/core-buffer/src/BinaryWriter.cpp b/core-buffer/src/BinaryWriter.cpp new file mode 100644 index 0000000..62b7ed2 --- /dev/null +++ b/core-buffer/src/BinaryWriter.cpp @@ -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() +{ + +} \ No newline at end of file