![]() |
GGEMS
1.1
GPU GEant4-based Monte Carlo Simulations
|
Print a custom std::cout end std::cerr handling verbosity. More...
#include <iostream>#include <ostream>#include <iomanip>#include <mutex>#include "GGEMS/global/GGEMSExport.hh"#include "GGEMS/tools/GGEMSTypes.hh"#include <windows.h>

Go to the source code of this file.
Classes | |
| class | GGEMSStream |
| Generic class redefining standard output. More... | |
Namespaces | |
| anonymous_namespace{GGEMSPrint.hh} | |
| empty namespace storing mutex | |
Macros | |
| #define | GGendl (static_cast<std::ostream& (*)(std::ostream&)>(std::endl)) |
| overload C++ std::endl More... | |
| #define | GGcin (std::cin) |
| overload C++ std::cin More... | |
Enumerations | |
| enum | GGEMSConsoleColor : GGuchar { black = 0, blue, green, aqua, red, purple, yellow, white, gray } |
| define a color for the console terminal More... | |
Functions | |
| void | set_ggems_verbose (GGint verbosity) |
| Set the verbosity of output stream. More... | |
Variables | |
| std::mutex | anonymous_namespace{GGEMSPrint.hh}::mutex |
| constexpr WORD | anonymous_namespace{GGEMSPrint.hh}::kColor [] |
| GGEMSStream | GGcout |
| GGEMSStream | GGcerr |
| GGEMSStream | GGwarn |
Print a custom std::cout end std::cerr handling verbosity.
Definition in file GGEMSPrint.hh.
| #define GGcin (std::cin) |
overload C++ std::cin
Definition at line 66 of file GGEMSPrint.hh.
| #define GGendl (static_cast<std::ostream& (*)(std::ostream&)>(std::endl)) |
overload C++ std::endl
Definition at line 60 of file GGEMSPrint.hh.
| enum GGEMSConsoleColor : GGuchar |
define a color for the console terminal
Definition at line 76 of file GGEMSPrint.hh.
| void set_ggems_verbose | ( | GGint | verbosity | ) |
Set the verbosity of output stream.
| verbosity | - level of verbosity |
Definition at line 81 of file GGEMSPrint.cc.
|
extern |
Define a new std::cerr with green red
Definition at line 35 of file GGEMSPrint.cc.
|
extern |
Define a new std::cout with green color
Definition at line 34 of file GGEMSPrint.cc.
|
extern |
Define a new std::cout for warning with orange color
Definition at line 36 of file GGEMSPrint.cc.