Helios++
Helios software for LiDAR simulations
|
Abstract child of SimpleSyncFileWriter which provides support for zipped output. More...
#include <ZipSyncFileWriter.h>
Public Member Functions | |
ZipSyncFileWriter (const string &path, int compressionMode=boost::iostreams::zlib::best_compression) | |
Build a ZipSyncFileWriter. More... | |
void | finish () override |
ZipSyncFileWriter finishes the binary output archive instead of calling its parent finish method. This is necessary to prevent malfunctions coming from interaction between output archive closing and output stream closing. More... | |
![]() | |
SimpleSyncFileWriter (const std::string &path, std::ios_base::openmode om=std::ios_base::app) | |
Simple synchronous file writer constructor. More... | |
void | finish () override |
SimpleSyncFileWriter finish method assures that output file will be closed if it is open. | |
![]() | |
SingleSyncFileWriter () | |
Default constructor for synchronous single-file writer. | |
SingleSyncFileWriter (const std::string &path) | |
Instantiate a SingleSyncFileWriter which writes to file at given path. More... | |
void | write (WriteArgs ... writeArgs) override |
Synchronously write to a single file. More... | |
std::string | getPath (size_t const idx) const override |
Obtain the path to the file. More... | |
![]() | |
SyncFileWriter ()=default | |
Default constructor for synchronous file writer. | |
std::string | getPath () |
Non index version of the SyncFileWriter::getPath(size_t const) function. More... | |
Protected Attributes | |
boost::iostreams::filtering_ostream | compressedOut |
Compressed output stream. | |
boost::iostreams::zlib_params | zp |
ZLib compression parameters. | |
unique_ptr< boost::archive::binary_oarchive > | oa |
Binary output archive. | |
![]() | |
std::ofstream | ofs |
Output file stream to be used by the simple synchronous file writer. | |
![]() | |
std::string | path |
Path to file to be written. | |
std::mutex | mutex |
Mutex to synchronize concurrent write operations. | |
std::shared_ptr< WriteStrategy< WriteArgs ... > > | writeStrategy |
The write strategy specifying how to write data to file. | |
Abstract child of SimpleSyncFileWriter which provides support for zipped output.
|
inlineexplicit |
Build a ZipSyncFileWriter.
compressionMode | Compression mode. Use boost::iostreams::zlib::best_speed to reduce execution time at most. Use boost::iostreams::zlib::best_compression to reduce size at most. |
|
inlineoverridevirtual |
ZipSyncFileWriter finishes the binary output archive instead of calling its parent finish method. This is necessary to prevent malfunctions coming from interaction between output archive closing and output stream closing.
Reimplemented from helios::filems::SyncFileWriter< WriteArgs ... >.