Bayeux
3.4.1
Core Foundation library for SuperNEMO
bayeux
datatools
ui
wrappers.h
Go to the documentation of this file.
1
//
4
// Copyright (c) 2016 by François Mauger <mauger@lpccaen.in2p3.fr>
5
//
6
// This file is part of datatools.
7
//
8
// datatools is free software: you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation, either version 3 of the License, or
11
// (at your option) any later version.
12
//
13
// datatools is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
17
//
18
// You should have received a copy of the GNU General Public License
19
// along with datatools. If not, see <http://www.gnu.org/licenses/>.
20
21
#ifndef DATATOOLS_UI_WRAPPERS_H
22
#define DATATOOLS_UI_WRAPPERS_H
23
24
// Standard library:
25
#include <string>
26
27
namespace
datatools
{
28
29
namespace
ui {
30
32
struct
wrapped_boolean
{
33
public
:
34
wrapped_boolean
();
35
bool
value
;
36
};
37
39
struct
wrapped_integer
{
40
public
:
41
wrapped_integer
();
42
int
value
;
43
};
44
46
struct
wrapped_real_without_unit
{
47
public
:
48
wrapped_real_without_unit
();
49
double
value
;
50
bool
normal
;
51
};
52
54
struct
wrapped_real_with_unit
{
55
public
:
56
wrapped_real_with_unit
(
const
std::string & required_unit_dimension_ =
""
);
57
double
value
;
58
bool
normal
;
59
std::string
required_unit_dimension
;
60
std::string
unit_symbol
;
61
std::string
unit_label
;
62
};
63
64
}
// namespace ui
65
66
}
// namespace datatools
67
68
#endif // DATATOOLS_UI_WRAPPERS_H
69
70
// Local Variables: --
71
// mode: c++ --
72
// c-file-style: "gnu" --
73
// tab-width: 2 --
74
// End: --
datatools::ui::wrapped_real_with_unit::wrapped_real_with_unit
wrapped_real_with_unit(const std::string &required_unit_dimension_="")
datatools::ui::wrapped_real_with_unit::normal
bool normal
Definition:
wrappers.h:58
datatools::ui::wrapped_boolean::wrapped_boolean
wrapped_boolean()
datatools::ui::wrapped_boolean
Wrapper for a boolean value.
Definition:
wrappers.h:32
datatools::ui::wrapped_real_without_unit
Wrapper for a dimensionless real value.
Definition:
wrappers.h:46
datatools::ui::wrapped_real_with_unit::unit_label
std::string unit_label
Definition:
wrappers.h:61
datatools::ui::wrapped_real_with_unit::value
double value
Definition:
wrappers.h:57
datatools::ui::wrapped_real_without_unit::value
double value
Definition:
wrappers.h:49
datatools::ui::wrapped_boolean::value
bool value
Definition:
wrappers.h:35
datatools::ui::wrapped_real_with_unit
Wrapper for a real value with associated unit.
Definition:
wrappers.h:54
datatools::ui::wrapped_integer
Wrapper for an integer value.
Definition:
wrappers.h:39
datatools::ui::wrapped_real_without_unit::wrapped_real_without_unit
wrapped_real_without_unit()
datatools::ui::wrapped_real_with_unit::required_unit_dimension
std::string required_unit_dimension
Definition:
wrappers.h:59
datatools::ui::wrapped_real_with_unit::unit_symbol
std::string unit_symbol
Definition:
wrappers.h:60
datatools
The Bayeux/datatools library top-level namespace.
Definition:
algo.h:13
datatools::ui::wrapped_real_without_unit::normal
bool normal
Definition:
wrappers.h:50
datatools::ui::wrapped_integer::wrapped_integer
wrapped_integer()
datatools::ui::wrapped_integer::value
int value
Definition:
wrappers.h:42
Generated by
1.8.15