BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RoughnessModels.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Multilayer/RoughnessModels.cpp
6 //! @brief Implements RoughnessModels enumerator and Python wrapper.
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 
16 
17 #include <map>
18 
19 namespace
20 {
21 const std::map<RoughnessModel, std::string> roughnessModelNames = {
22  {RoughnessModel::DEFAULT, "RoughnessModel::DEFAULT"},
23  {RoughnessModel::TANH, "RoughnessModel::TANH"},
24  {RoughnessModel::NEVOT_CROCE, "RoughnessModel::NEVOT_CROCE"}};
25 }
26 
28 {
29  return roughnessModelNames.at(model);
30 }
Define RoughnessModels enumerator and Python wrapper.
const std::map< RoughnessModel, std::string > roughnessModelNames
static std::string roughnessModelName(RoughnessModel model)