Concrete class specializing a SimpleMultiSyncFileWriter to write vectors of measurements directly to files with support for concurrent multiple output streams.
More...
#include <SimpleMultiVectorialSyncFileMeasurementWriter.h>
|
vector< DirectMeasurementWriteStrategy > | dmws |
| The measurement write strategies that are wrapped by the main write strategies in a vectorial fashion ( filems::SimpleMultiSyncFileWriter::writeStrategy )
|
|
std::vector< std::ofstream > | ofs |
| Output file streams to be used by the simple multi synchronous file writer.
|
|
std::vector< std::string > | path |
| Paths to the files to be written.
|
|
std::vector< std::mutex > | mutex |
| One mutex per file to be written (i-th mutex corresponds to i-th file)
|
|
std::vector< std::shared_ptr< WriteStrategy< WriteArgs ... > > > | writeStrategy |
| The write strategies specifying how to write data, one per file.
|
|
|
| MultiSyncFileWriter () |
| Default constructor for synchronous multi-file writer. More...
|
|
| MultiSyncFileWriter (std::vector< std::string > const &path) |
|
void | write (WriteArgs ... writeArgs) override |
| Synchronously write to a single file. More...
|
|
virtual size_t | indexFromWriteArgs (WriteArgs ... writeArgs)=0 |
| Any concrete implementation extending MultiSyncFileWriter must override this function to specify how to obtain the index from the WriteArgs. More...
|
|
std::string | getPath (size_t const idx) const override |
| Obtain the path to the idx-th file. More...
|
|
Concrete class specializing a SimpleMultiSyncFileWriter to write vectors of measurements directly to files with support for concurrent multiple output streams.
- Author
- Alberto M. Esmoris PEna
- Version
- 1.0
◆ SimpleMultiVectorialSyncFileMeasurementWriter()
helios::filems::SimpleMultiVectorialSyncFileMeasurementWriter::SimpleMultiVectorialSyncFileMeasurementWriter |
( |
vector< string > const & |
path, |
|
|
std::ios_base::openmode |
om = std::ios_base::app |
|
) |
| |
|
inlineexplicit |
◆ buildVectorialWriteStrategies()
void helios::filems::SimpleMultiVectorialSyncFileMeasurementWriter::buildVectorialWriteStrategies |
( |
| ) |
|
|
inline |
◆ indexFromWriteArgs()
size_t helios::filems::SimpleMultiVectorialSyncFileMeasurementWriter::indexFromWriteArgs |
( |
vector< Measurement > const & |
measurements, |
|
|
glm::dvec3 const & |
offset |
|
) |
| |
|
inlineoverride |
The documentation for this class was generated from the following file: