DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include "datahandlinglibs/DataHandlingIssues.hpp"
#include "datahandlinglibs/ReadoutLogging.hpp"
#include "logging/Logging.hpp"
#include <boost/align/aligned_allocator.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/filter/lzma.hpp>
#include <boost/iostreams/filter/zlib.hpp>
#include <boost/iostreams/filter/zstd.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/stream_buffer.hpp>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include <unistd.h>
Go to the source code of this file.
Classes | |
class | dunedaq::datahandlinglibs::BufferedFileWriter< Alignment > |
Namespaces | |
namespace | dunedaq |
Including Qt Headers. | |
namespace | dunedaq::datahandlinglibs |
Code to buffer and write data to a file. For better performance, the O_DIRECT flag is used to circumvent additional kernel buffering. The buffer size has to be tuned according to the system. The writer also supports several compression algorithms that are applied before data is written to the file. This can be useful when writing is slow and enough cpu resources are available for compression.
This is part of the DUNE DAQ , copyright 2021. Licensing/copyright details are in the COPYING file that you should have received with this code.
Definition in file BufferedFileWriter.hpp.