BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Unit.h
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Param/Base/Unit.h
6
//! @brief Defines class Unit.
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_PARAMETRIZATION_UNIT_H
16
#define BORNAGAIN_CORE_PARAMETRIZATION_UNIT_H
17
18
#include <string>
19
20
//! A physical unit.
21
22
class
Unit
23
{
24
public
:
25
explicit
Unit
(
const
std::string& name =
""
) : m_name(name) {}
26
void
setUnit(
const
std::string& name) { m_name = name; }
27
const
std::string& getName()
const
{
return
m_name; }
28
29
private
:
30
std::string m_name;
31
};
32
33
#endif
// BORNAGAIN_CORE_PARAMETRIZATION_UNIT_H
Unit
A physical unit.
Definition:
Unit.h:23
Param
Base
Unit.h
Generated by
1.9.1