Abstract class defining common behavior for all synchronous writers that work with multiple files at a time.
More...
#include <MultiSyncFileWriter.h>
|
| 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...
|
|
|
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.
|
|
|
| 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...
|
|
template<typename ... WriteArgs>
class helios::filems::MultiSyncFileWriter< WriteArgs >
Abstract class defining common behavior for all synchronous writers that work with multiple files at a time.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- See also
- filems::WriteStrategy
-
filems::SyncFileWriter
◆ MultiSyncFileWriter()
template<typename ... WriteArgs>
Default constructor for synchronous multi-file writer.
- Parameters
-
path | Paths to the files to be written |
- See also
- MultiSyncFileWriter::path
◆ getPath()
template<typename ... WriteArgs>
|
inlineoverrideprotectedvirtual |
◆ indexFromWriteArgs()
template<typename ... WriteArgs>
Any concrete implementation extending MultiSyncFileWriter must override this function to specify how to obtain the index from the WriteArgs.
- Parameters
-
writeArgs | The arguments defining a write operation |
- Returns
- The index corresponding to the requested write operation
◆ write()
template<typename ... WriteArgs>
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: