BornAgain  1.18.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 scattering at grazing incidence
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 Simulation;
22 
23 //! Contains main methods to generate Python scripts from Core simulation objects.
24 
25 namespace ExportToPython
26 {
27 
28 std::string generateSampleCode(const MultiLayer& multilayer);
29 std::string generateSimulationCode(const Simulation& simulation);
30 std::string generatePyExportTest(const Simulation& simulation);
31 
32 } // namespace ExportToPython
33 
34 #endif // BORNAGAIN_CORE_EXPORT_EXPORTTOPYTHON_H
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:42
Pure virtual base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Definition: Simulation.h:38
Contains main methods to generate Python scripts from Core simulation objects.
std::string generateSimulationCode(const Simulation &simulation)
std::string generatePyExportTest(const Simulation &simulation)
std::string generateSampleCode(const MultiLayer &multilayer)