31 const std::string& fname)
Defines ExportToPython namespace.
Defines interface ISimulation.
Defines class SampleToPython.
Defines class SimulationToPython.
Abstract base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Our sample model: a stack of layers one below the other.
Generates Python code snippet from domain (C++) objects representing sample construction.
std::string sampleCode(const MultiLayer &multilayer)
Write a Python script that allows to run the current simulation.
std::string simulationSaveCode(const ISimulation &simulation, const std::string &fname)
Returns a Python script that runs a simulation and saves the result to a file.
std::string simulationPlotCode(const ISimulation &simulation)
Returns a Python script that runs a simulation and plots the result.
std::string sampleCode(const MultiLayer &multilayer)
std::string simulationSaveCode(const ISimulation &simulation, const std::string &fname)
std::string simulationPlotCode(const ISimulation &simulation)