Initial public release.
[OpenCLIPER] / LPISupport / include / LPISupport / Utils.hpp
1 /* Copyright (C) 2018 Federico Simmross Wattenberg,
2  *                    Manuel Rodríguez Cayetano,
3  *                    Javier Royuela del Val,
4  *                    Elena Martín González,
5  *                    Elisa Moya Sáez,
6  *                    Marcos Martín Fernández and
7  *                    Carlos Alberola López
8  *
9  * This file is part of OpenCLIPER.
10  *
11  * OpenCLIPER is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; version 3 of the License.
14  *
15  * OpenCLIPER is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with OpenCLIPER; If not, see <http://www.gnu.org/licenses/>.
22  *
23  *
24  *  Contact:
25  *
26  *  Federico Simmross Wattenberg
27  *  E.T.S.I. Telecomunicación
28  *  Universidad de Valladolid
29  *  Paseo de Belén 15
30  *  47011 Valladolid, Spain.
31  *  fedsim@tel.uva.es
32  */
33 /*
34  * Utils.hpp
35  *
36  *  Created on: 15 de nov. de 2016
37  *      Author: manrod
38  */
39
40 #ifndef INCLUDE_OPENCLIPER_UTILS_HPP_
41 #define INCLUDE_OPENCLIPER_UTILS_HPP_
42 #include <string>
43 #include <vector>
44 #include <sstream>
45 #include <chrono> // measurement of execution times
46 #include <iomanip> // for std::setprecision
47
48 /// Namespace for the LPISupport library (support classes for the OpenCLIPER framework)
49 namespace LPISupport {
50 /**
51   * @brief Class containing general purpose methods.
52   * 
53   */
54 class Utils {
55 public:
56
57     Utils();
58     virtual ~Utils();
59
60     static void checkAndSetValue(unsigned long& value, unsigned long min, unsigned long max);
61 };
62
63 } /* namespace OpenCLIPER */
64
65 #endif /* INCLUDE_OPENCLIPER_UTILS_HPP_ */