MolSim
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WriterFactory Class Reference

Factory class for creating different types of file output generators. More...

#include <WriterFactory.h>

Static Public Member Functions

static std::unique_ptr< FileWritercreateWriter (WriterType type, const std::string &basename)
 Returns a unique pointer to a default-initialized writer object of a given type.
 

Detailed Description

Factory class for creating different types of file output generators.

Member Function Documentation

◆ createWriter()

static std::unique_ptr< FileWriter > WriterFactory::createWriter ( WriterType  type,
const std::string &  basename 
)
static

Returns a unique pointer to a default-initialized writer object of a given type.

Parameters
typeThe specified WriterType of the writer object to be instantiated.
basenameThe basename of the generated files.
Returns
A std::unique_ptr<FileWriter> instance matching the desired type.

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