Geant4-11
Namespaces | Macros | Enumerations | Functions
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"

Go to the source code of this file.

Namespaces

namespace  G4INCL
 
namespace  G4INCL::Logger
 

Macros

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

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

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

Macro Definition Documentation

◆ G4INCLLogger_hh

#define G4INCLLogger_hh   1

Definition at line 39 of file G4INCLLogger.hh.

◆ INCL_DATABLOCK

#define INCL_DATABLOCK (   x)    ;

Definition at line 247 of file G4INCLLogger.hh.

◆ INCL_DEBUG

#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
G4int getVerbosityLevel()

Definition at line 240 of file G4INCLLogger.hh.

◆ INCL_ERROR

#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

Definition at line 225 of file G4INCLLogger.hh.

◆ INCL_FATAL

#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
@ EventMustBeAborted

Definition at line 216 of file G4INCLLogger.hh.

◆ INCL_INFO

#define INCL_INFO (   x)    ;

Definition at line 239 of file G4INCLLogger.hh.

◆ INCL_WARN

#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
@ WarningMsg
Definition: G4INCLLogger.hh:62

Definition at line 232 of file G4INCLLogger.hh.

◆ INCLXX_IN_GEANT4_MODE

#define INCLXX_IN_GEANT4_MODE   1

Definition at line 34 of file G4INCLLogger.hh.