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