Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4INCLLogger.hh File Reference
#include "globals.hh"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include "G4ios.hh"
#include "G4INCLRandom.hh"
#include "G4INCLConfig.hh"
Include dependency graph for G4INCLLogger.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 G4INCL
 
 G4INCL::Logger
 

Macros

#define INCLXX_IN_GEANT4_MODE   1
 
#define G4INCLLogger_hh   1
 
#define INCL_FATAL(x)
 
#define INCL_ERROR(x)
 
#define INCL_WARN(x)
 
#define INCL_INFO(x)   ;
 
#define INCL_DEBUG(x)
 
#define INCL_DATABLOCK(x)   ;
 

Enumerations

enum  G4INCL::MessageType {
  G4INCL::InfoMsg = 1, G4INCL::FatalMsg = 2, G4INCL::ErrorMsg = 3, G4INCL::WarningMsg = 4,
  G4INCL::DebugMsg = 7, G4INCL::DataBlockMsg = 10, G4INCL::ZeroMsg = 0
}
 

Functions

void G4INCL::Logger::initVerbosityLevelFromEnvvar ()
 
G4int G4INCL::Logger::getVerbosityLevel ()
 

Macro Definition Documentation

#define G4INCLLogger_hh   1

Definition at line 39 of file G4INCLLogger.hh.

#define INCL_DATABLOCK (   x)    ;

Definition at line 247 of file G4INCLLogger.hh.

#define INCL_DEBUG (   x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ debug [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0
tuple x
Definition: test.py:50
G4GLOB_DLL std::ostream G4cout
G4int getVerbosityLevel()

Definition at line 240 of file G4INCLLogger.hh.

#define INCL_ERROR (   x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ error [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0
tuple x
Definition: test.py:50
G4GLOB_DLL std::ostream G4cout
G4int getVerbosityLevel()

Definition at line 225 of file G4INCLLogger.hh.

#define INCL_FATAL (   x)
Value:
if(true) {\
std::stringstream ss_;\
ss_ << x;\
std::stringstream location_;\
std::string fileName_(__FILE__);\
location_ << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__;\
G4Exception(location_.str().c_str(), "INCLXX0000", EventMustBeAborted, ss_.str().c_str());\
} else (void)0
tuple x
Definition: test.py:50
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Definition at line 216 of file G4INCLLogger.hh.

#define INCL_INFO (   x)    ;

Definition at line 239 of file G4INCLLogger.hh.

#define INCL_WARN (   x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ warning [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0
tuple x
Definition: test.py:50
G4GLOB_DLL std::ostream G4cout
G4int getVerbosityLevel()

Definition at line 232 of file G4INCLLogger.hh.

#define INCLXX_IN_GEANT4_MODE   1

Definition at line 34 of file G4INCLLogger.hh.