BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Param/Varia/ParameterUtils.h
6 //! @brief Defines namespace ParameterUtils
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_PARAM_VARIA_PARAMETERUTILS_H
21 #define BORNAGAIN_PARAM_VARIA_PARAMETERUTILS_H
22 
23 #include <string>
24 
26 
27 namespace ParameterUtils {
28 
29 //! Returns true if given parameter name is related to angles.
30 bool isAngleRelated(const std::string& par_name);
31 
32 //! Returns units of main parameter.
33 std::string poolParameterUnits(const IParametricComponent& node, const std::string& parName);
34 
35 } // namespace ParameterUtils
36 
37 #endif // BORNAGAIN_PARAM_VARIA_PARAMETERUTILS_H
38 #endif // USER_API
Manages a local parameter pool, and a tree of child pools.
std::string poolParameterUnits(const IParametricComponent &node, const std::string &parName)
Returns units of main parameter.
bool isAngleRelated(const std::string &par_name)
Returns true if given parameter name is related to angles.