GGEMS
1.1
GPU GEant4-based Monte Carlo Simulations
|
Generic class redefining standard output. More...
#include "GGEMSPrint.hh"
Public Member Functions | |
GGEMSStream (std::ostream &stream, GGEMSConsoleColor const &color) | |
GGEMSStream constructor. More... | |
~GGEMSStream () | |
GGStream destructor. More... | |
GGEMSStream & | operator() (std::string const &class_name, std::string const &method_name, GGint const &verbosity_level) |
setting private members to display them to standart output More... | |
template<typename T > | |
GGEMSStream & | operator<< (T const &message) |
overloading << to print a message in standard output More... | |
void | SetVerbosity (GGint const &verbosity_limit) |
Set the global verbosity. More... | |
Protected Attributes | |
std::ostream & | stream_ |
GGEMSConsoleColor | color_index_ |
Private Attributes | |
std::string | class_name_ |
std::string | method_name_ |
GGint | verbosity_limit_ |
GGint | verbosity_level_ |
GGint | stream_counter_ |
Generic class redefining standard output.
Definition at line 126 of file GGEMSPrint.hh.
GGEMSStream::GGEMSStream | ( | std::ostream & | stream, |
GGEMSConsoleColor const & | color | ||
) |
GGEMSStream constructor.
stream | - an output stream |
color | - define a color on the screen |
Definition at line 42 of file GGEMSPrint.cc.
|
inline |
GGStream destructor.
Definition at line 139 of file GGEMSPrint.hh.
GGEMSStream & GGEMSStream::operator() | ( | std::string const & | class_name, |
std::string const & | method_name, | ||
GGint const & | verbosity_level | ||
) |
setting private members to display them to standart output
class_name | - Name of the class to print |
method_name | - Name of the method to print |
verbosity_level | - Verbosity level to display |
Definition at line 143 of file GGEMSPrint.hh.
GGEMSStream & GGEMSStream::operator<< | ( | T const & | message | ) |
overloading << to print a message in standard output
T | - type of data |
message | - message displayed to screen |
Definition at line 186 of file GGEMSPrint.hh.
void GGEMSStream::SetVerbosity | ( | GGint const & | verbosity_limit | ) |
Set the global verbosity.
verbosity_limit | - give the verbosity limit applied during execution |
Definition at line 58 of file GGEMSPrint.cc.
|
private |
Name of the class to print
Definition at line 170 of file GGEMSPrint.hh.
|
protected |
Color to print on screen
Definition at line 178 of file GGEMSPrint.hh.
|
private |
Name of the method to print
Definition at line 171 of file GGEMSPrint.hh.
|
protected |
Stream handling std::cout or std::endl
Definition at line 177 of file GGEMSPrint.hh.
|
private |
Counter printing multiple stream
Definition at line 174 of file GGEMSPrint.hh.
|
private |
Verbosity level of the print
Definition at line 173 of file GGEMSPrint.hh.
|
private |
Verbosity limit fixed by user
Definition at line 172 of file GGEMSPrint.hh.