BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
PyFmtLimits.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sim/Export/PyFmtLimits.h
6 //! @brief Defines namespace pyfmt.
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SIM_EXPORT_PYFMTLIMITS_H
21 #define BORNAGAIN_SIM_EXPORT_PYFMTLIMITS_H
22 
23 #include <string>
24 
25 class RealLimits;
26 
27 //! Utility functions for writing Python code snippets.
28 
29 namespace Py::Fmt {
30 
31 std::string printRealLimits(const RealLimits& limits, const std::string& units = "");
32 std::string printRealLimitsArg(const RealLimits& limits, const std::string& units = "");
33 
34 } // namespace Py::Fmt
35 
36 #endif // BORNAGAIN_SIM_EXPORT_PYFMTLIMITS_H
37 #endif // USER_API
Limits for a real fit parameter.
Definition: RealLimits.h:24
Utility functions for writing Python code snippets.
Definition: PyFmt.cpp:22
std::string printRealLimitsArg(const RealLimits &limits, const std::string &units)
Prints RealLimits in the form of argument (in the context of ParameterDistribution and similar)....
Definition: PyFmtLimits.cpp:59
std::string printRealLimits(const RealLimits &limits, const std::string &units)
Definition: PyFmtLimits.cpp:22