BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterPattern.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Param/Varia/ParameterPattern.cpp
6 //! @brief Implements class ParameterPattern
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 
18 {
19  m_pattern = start_type;
20  return *this;
21 }
22 
23 ParameterPattern& ParameterPattern::add(std::string object_type)
24 {
25  m_pattern = m_pattern + "/" + object_type;
26  return *this;
27 }
Defines class ParameterPattern.
Helper class for constructing parameter patterns.
std::string m_pattern
ParameterPattern & beginsWith(std::string start_type)
ParameterPattern & add(std::string object_type)