Bayeux  3.4.1
Core Foundation library for SuperNEMO
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:
35  bool value;
36  };
37 
39  struct wrapped_integer {
40  public:
42  int value;
43  };
44 
47  public:
49  double value;
50  bool normal;
51  };
52 
55  public:
56  wrapped_real_with_unit(const std::string & required_unit_dimension_ = "");
57  double value;
58  bool normal;
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: --
wrapped_real_with_unit(const std::string &required_unit_dimension_="")
bool normal
Definition: wrappers.h:58
Wrapper for a boolean value.
Definition: wrappers.h:32
Wrapper for a dimensionless real value.
Definition: wrappers.h:46
std::string unit_label
Definition: wrappers.h:61
double value
Definition: wrappers.h:57
double value
Definition: wrappers.h:49
bool value
Definition: wrappers.h:35
Wrapper for a real value with associated unit.
Definition: wrappers.h:54
Wrapper for an integer value.
Definition: wrappers.h:39
std::string required_unit_dimension
Definition: wrappers.h:59
std::string unit_symbol
Definition: wrappers.h:60
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13
bool normal
Definition: wrappers.h:50
int value
Definition: wrappers.h:42