BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ExportToPython.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Export/ExportToPython.h
6 //! @brief Defines ExportToPython namespace.
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_EXPORT_EXPORTTOPYTHON_H
16 #define BORNAGAIN_CORE_EXPORT_EXPORTTOPYTHON_H
17 
18 #include <string>
19 
20 class MultiLayer;
21 class ISimulation;
22 
23 //! Wraps methods that serialize objects to Python.
24 
25 namespace ExportToPython {
26 
27 std::string sampleCode(const MultiLayer& multilayer);
28 std::string simulationPlotCode(const ISimulation& simulation);
29 std::string simulationSaveCode(const ISimulation& simulation, const std::string& fname);
30 
31 } // namespace ExportToPython
32 
33 #endif // BORNAGAIN_CORE_EXPORT_EXPORTTOPYTHON_H
Abstract base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Definition: ISimulation.h:38
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:41
Wraps methods that serialize objects to Python.
std::string sampleCode(const MultiLayer &multilayer)
std::string simulationSaveCode(const ISimulation &simulation, const std::string &fname)
std::string simulationPlotCode(const ISimulation &simulation)