Helios++
Helios software for LiDAR simulations
|
Abstract class defining common behavior for all synchronous writers that work with a single file at a time. More...
#include <SingleSyncFileWriter.h>
Public Member Functions | |
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. | |
virtual void | finish () |
Finish the writing so all writing operations are performed and all buffers are closed. | |
std::string | getPath () |
Non index version of the SyncFileWriter::getPath(size_t const) function. More... | |
Protected Attributes | |
std::string | path |
Path to file to be written. | |
std::mutex | mutex |
Mutex to synchronize concurrent write operations. | |
std::shared_ptr< WriteStrategy< WriteArgs ... > > | writeStrategy = nullptr |
The write strategy specifying how to write data to file. | |
Abstract class defining common behavior for all synchronous writers that work with a single file at a time.
|
inlineexplicit |
Instantiate a SingleSyncFileWriter which writes to file at given path.
path | Path to file to be written |
|
inlineoverridevirtual |
Obtain the path to the file.
Implements helios::filems::SyncFileWriter< WriteArgs ... >.
|
inlineoverridevirtual |
Synchronously write to a single file.
Implements helios::filems::SyncFileWriter< WriteArgs ... >.