Helios++
Helios software for LiDAR simulations
helios::filems::SimpleVectorialSyncFileFullWaveformWriter Class Reference

Concrete class specializing SimpleSyncFileWriter to write a vector of full waveforms directly to a file. More...

#include <SimpleVectorialSyncFileFullWaveformWriter.h>

Inheritance diagram for helios::filems::SimpleVectorialSyncFileFullWaveformWriter:
Collaboration diagram for helios::filems::SimpleVectorialSyncFileFullWaveformWriter:

Public Member Functions

 SimpleVectorialSyncFileFullWaveformWriter (const std::string &path, std::ios_base::openmode om=std::ios_base::app)
 Simple synchronous file full waveform vector writer constructor. More...
 
- Public Member Functions inherited from helios::filems::SimpleSyncFileWriter< vector< FullWaveform > const & >
 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.
 
- Public Member Functions inherited from helios::filems::SingleSyncFileWriter< WriteArgs ... >
 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...
 
- Public Member Functions inherited from helios::filems::SyncFileWriter< WriteArgs ... >
 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

DirectFullWaveformWriteStrategy dfwws
 The full waveform write strategy that is wrapped by the main write strategy in a vectorial fashion ( filems::SimpleSyncFileWriter::writeStrategy ) More...
 
- Protected Attributes inherited from helios::filems::SimpleSyncFileWriter< vector< FullWaveform > const & >
std::ofstream ofs
 Output file stream to be used by the simple synchronous file writer.
 
- Protected Attributes inherited from helios::filems::SingleSyncFileWriter< WriteArgs ... >
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.
 

Detailed Description

Concrete class specializing SimpleSyncFileWriter to write a vector of full waveforms directly to a file.

Author
Alberto M. Esmoris Pena
Version
1.0
See also
filems::SimpleSyncFileWriter
filems::DirectFullWaveformWriteStrategy
FullWaveform
filems::SimpleSyncFileFullWaveformWriter

Constructor & Destructor Documentation

◆ SimpleVectorialSyncFileFullWaveformWriter()

helios::filems::SimpleVectorialSyncFileFullWaveformWriter::SimpleVectorialSyncFileFullWaveformWriter ( const std::string &  path,
std::ios_base::openmode  om = std::ios_base::app 
)
inlineexplicit

Simple synchronous file full waveform vector writer constructor.

See also
filems::SimpleSyncFileWriter::SimpleSyncFileWriter

Member Data Documentation

◆ dfwws

DirectFullWaveformWriteStrategy helios::filems::SimpleVectorialSyncFileFullWaveformWriter::dfwws
protected

The full waveform write strategy that is wrapped by the main write strategy in a vectorial fashion ( filems::SimpleSyncFileWriter::writeStrategy )

See also
filems::DirectFullWaveformWriterStrategy

The documentation for this class was generated from the following file: