GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSTools.hh
Go to the documentation of this file.
1 #ifndef GUARD_GGEMS_TOOLS_GGEMSTOOLS_HH
2 #define GUARD_GGEMS_TOOLS_GGEMSTOOLS_HH
3 
4 // ************************************************************************
5 // * This file is part of GGEMS. *
6 // * *
7 // * GGEMS is free software: you can redistribute it and/or modify *
8 // * it under the terms of the GNU General Public License as published by *
9 // * the Free Software Foundation, either version 3 of the License, or *
10 // * (at your option) any later version. *
11 // * *
12 // * GGEMS is distributed in the hope that it will be useful, *
13 // * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 // * GNU General Public License for more details. *
16 // * *
17 // * You should have received a copy of the GNU General Public License *
18 // * along with GGEMS. If not, see <https://www.gnu.org/licenses/>. *
19 // * *
20 // ************************************************************************
21 
34 #include <fstream>
35 #include <cmath>
36 
37 #include "GGEMS/global/GGEMSConfiguration.hh"
39 
44 namespace GGEMSFileStream
45 {
52  void CheckInputStream(std::ifstream const& input_stream, std::string const& filename);
53 }
54 
59 namespace GGEMSMisc
60 {
68  void ThrowException(std::string const& class_name, std::string const& method_name, std::string const& message);
69 }
70 
71 #endif // End of GUARD_GGEMS_TOOLS_GGEMSTOOLS_HH
GGEMSTypes.hh
Redefining types for OpenCL device and host.
GGEMSFileStream
namespace checking file stream in input and output
GGEMSFileStream::CheckInputStream
void CheckInputStream(std::ifstream const &input_stream, std::string const &filename)
check the input stream during the opening
Definition: GGEMSTools.cc:42
GGEMSMisc
namespace storing miscellaneous functions
GGEMSMisc::ThrowException
void ThrowException(std::string const &class_name, std::string const &method_name, std::string const &message)
Throw a C++ exception.
Definition: GGEMSTools.cc:61