BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
OutputDataReadFactory.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Device/InputOutput/OutputDataReadFactory.h
6 //! @brief Defines class OutputDataReadFactory.
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_OUTPUTDATAREADFACTORY_H
16 #define BORNAGAIN_CORE_INPUTOUTPUT_OUTPUTDATAREADFACTORY_H
17 
19 
20 //! Creates reader appropariate for given type of files.
21 //! @ingroup input_output_internal
22 
24 {
25 public:
26  static OutputDataReader* getReader(const std::string& file_name);
27  static OutputDataReader* getReflectometryReader(const std::string& file_name);
28 
29 private:
30  static IOutputDataReadStrategy* getReadStrategy(const std::string& file_name);
31 };
32 
33 #endif // BORNAGAIN_CORE_INPUTOUTPUT_OUTPUTDATAREADFACTORY_H
Defines class OutputDataReader.
Interface for reading strategy of OutputData from file.
Creates reader appropariate for given type of files.
static OutputDataReader * getReflectometryReader(const std::string &file_name)
static OutputDataReader * getReader(const std::string &file_name)
static IOutputDataReadStrategy * getReadStrategy(const std::string &file_name)
Reads OutputData from file using different reading strategies.