BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
OutputDataWriteFactory.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Device/InputOutput/OutputDataWriteFactory.h
6 //! @brief Defines class OutputDataWriteFactory.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_INPUTOUTPUT_OUTPUTDATAWRITEFACTORY_H
16 #define BORNAGAIN_CORE_INPUTOUTPUT_OUTPUTDATAWRITEFACTORY_H
17 
19 
20 //! Creates writer appropariate for given type of files.
21 //! @ingroup input_output_internal
22 
24 {
25 public:
26  static OutputDataWriter* getWriter(const std::string& file_name);
27 
28 private:
29  static IOutputDataWriteStrategy* getWriteStrategy(const std::string& file_name);
30 };
31 
32 #endif // BORNAGAIN_CORE_INPUTOUTPUT_OUTPUTDATAWRITEFACTORY_H
Defines class OutputDataWriter.
Strategy interface to write OututData in file.
Creates writer appropariate for given type of files.
static OutputDataWriter * getWriter(const std::string &file_name)
static IOutputDataWriteStrategy * getWriteStrategy(const std::string &file_name)
Write OutputData to file using different witing strategies.