BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyFmtLimits.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Export/PyFmtLimits.h
6 //! @brief Defines functions in 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_CORE_EXPORT_PYFMTLIMITS_H
21 #define BORNAGAIN_CORE_EXPORT_PYFMTLIMITS_H
22 
23 #include <string>
24 
25 class RealLimits;
26 
27 //! Utility functions for writing Python code snippets.
28 
29 namespace pyfmt {
30 std::string printRealLimits(const RealLimits& limits, const std::string& units = "");
31 std::string printRealLimitsArg(const RealLimits& limits, const std::string& units = "");
32 } // namespace pyfmt
33 
34 #endif // BORNAGAIN_CORE_EXPORT_PYFMTLIMITS_H
35 #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 printRealLimits(const RealLimits &limits, const std::string &units)
Definition: PyFmtLimits.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:60