BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RoughnessModels.h
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Sample/Multilayer/RoughnessModels.h
6
//! @brief Define 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
15
#ifndef BORNAGAIN_CORE_MULTILAYER_ROUGHNESSMODELS_H
16
#define BORNAGAIN_CORE_MULTILAYER_ROUGHNESSMODELS_H
17
18
#include <string>
19
20
// workaround for SWIG (instead of just writing enum class RoughnessModel ...)
21
struct
RoughnessModelWrap
{
22
enum
RoughnessModel { DEFAULT, TANH, NEVOT_CROCE };
23
#ifndef SWIG
24
// TODO: to automatize enum to string convertion, one can possibly use this solution
25
// https://stackoverflow.com/questions/147267/easy-way-to-use-variables-of-enum-types-as-string-in-c#202511
26
static
std::string roughnessModelName(RoughnessModel model);
27
#endif
28
};
29
typedef
RoughnessModelWrap::RoughnessModel RoughnessModel;
30
31
#endif
// BORNAGAIN_CORE_MULTILAYER_ROUGHNESSMODELS_H
RoughnessModelWrap
Definition:
RoughnessModels.h:21
Sample
Multilayer
RoughnessModels.h
Generated by
1.9.1