Bayeux  3.4.1
Core Foundation library for SuperNEMO
validators.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_VALIDATORS_H
22 #define DATATOOLS_UI_VALIDATORS_H
23 
24 // Standard library:
25 #include <string>
26 #include <vector>
27 
28 // Third party:
29 #include <boost/any.hpp>
30 
31 // This project:
32 #include <datatools/ui/wrappers.h>
33 
34 namespace datatools {
35 
36  namespace ui {
37 
45  void validate(boost::any & v_,
46  const std::vector<std::string> & values_,
48 
56  void validate(boost::any & v_,
57  const std::vector<std::string> & values_,
59 
70  void validate(boost::any & v_,
71  const std::vector<std::string> & values_,
73 
87  void validate(boost::any & v_,
88  const std::vector<std::string> & values_,
90 
91  } // namespace ui
92 
93 } // namespace datatools
94 
95 #endif // DATATOOLS_UI_VALIDATORS_H
96 
97 // Local Variables: --
98 // mode: c++ --
99 // c-file-style: "gnu" --
100 // tab-width: 2 --
101 // End: --
Wrapper for a boolean value.
Definition: wrappers.h:32
Wrapper for a dimensionless real value.
Definition: wrappers.h:46
void validate(boost::any &v_, const std::vector< std::string > &values_, datatools::ui::wrapped_boolean *, int)
Wrapper for a real value with associated unit.
Definition: wrappers.h:54
Wrapper for an integer value.
Definition: wrappers.h:39
Simple type wrappers.
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13