BornAgain
1.19.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 reflection and scattering
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
#ifdef SWIG
16
#error no need to expose this header to Swig
17
#endif
18
19
#ifndef USER_API
20
#ifndef BORNAGAIN_PARAM_BASE_UNIT_H
21
#define BORNAGAIN_PARAM_BASE_UNIT_H
22
23
#include <string>
24
25
//! A physical unit.
26
27
class
Unit
{
28
public
:
29
explicit
Unit
(
const
std::string&
name
=
""
) :
m_name
(
name
) {}
30
void
setUnit
(
const
std::string&
name
) {
m_name
=
name
; }
31
const
std::string&
getName
()
const
{
return
m_name
; }
32
33
private
:
34
std::string
m_name
;
35
};
36
37
#endif
// BORNAGAIN_PARAM_BASE_UNIT_H
38
#endif
// USER_API
Unit
A physical unit.
Definition:
Unit.h:27
Unit::setUnit
void setUnit(const std::string &name)
Definition:
Unit.h:30
Unit::m_name
std::string m_name
Definition:
Unit.h:34
Unit::getName
const std::string & getName() const
Definition:
Unit.h:31
Unit::Unit
Unit(const std::string &name="")
Definition:
Unit.h:29
RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:21
Param
Base
Unit.h
Generated by
1.9.1