CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Classes | Namespaces | Macros | Functions
Exceptions/ZMexception.h File Reference
#include "CLHEP/Exceptions/defs.h"
#include <iosfwd>
#include <string>
#include "CLHEP/Exceptions/ZMexSeverity.h"
#include "CLHEP/Exceptions/ZMexLogResult.h"
#include "CLHEP/Exceptions/ZMexAction.h"
#include "CLHEP/Exceptions/ZMexClassInfo.h"
#include <sstream>
#include "CLHEP/Exceptions/ZMexception.icc"

Go to the source code of this file.

Classes

class  zmex::ZMexception
 

Namespaces

 zmex
 

Macros

#define STRING_INCLUDED
 
#define ZMEX
 
#define ZMexClassStaticMethods
 
#define ZMexVirtualMethods(Parent, Class)
 
#define ZMexStandardContents(Parent, Class)
 
#define ZMexStandardDefinition(Parent, Class)
 
#define ZMEXCEPTION_ICC
 

Functions

ZMexHandler & zmex::ZMhandler ()
 
ZMexLogger & zmex::ZMlogger ()
 

Macro Definition Documentation

◆ STRING_INCLUDED

#define STRING_INCLUDED

Definition at line 102 of file Exceptions/ZMexception.h.

◆ ZMEX

#define ZMEX

Definition at line 128 of file Exceptions/ZMexception.h.

◆ ZMEXCEPTION_ICC

#define ZMEXCEPTION_ICC

Definition at line 535 of file Exceptions/ZMexception.h.

◆ ZMexClassStaticMethods

#define ZMexClassStaticMethods
Value:
\
static zmex::ZMexHandler setHandler( \
const zmex::ZMexHandler & newHandler ) { \
return _classInfo.setHandler( newHandler); } \
static zmex::ZMexHandler getHandler() { \
return _classInfo.getHandler(); } \
\
static zmex::ZMexLogger setLogger( \
const zmex::ZMexLogger & newLogger ) { \
return _classInfo.setLogger( newLogger ); } \
static zmex::ZMexLogger getLogger() { \
return _classInfo.getLogger(); } \
\
static zmex::ZMexSeverity setSeverity ( \
const zmex::ZMexSeverity & newSeverity ) { \
return _classInfo.setSeverity (newSeverity); } \
static const std::string setName ( const std::string & newName ) { \
return _classInfo.setName (newName); } \
static const std::string setFacility(const std::string& newFacility){ \
return _classInfo.setFacility (newFacility); } \
static bool isTypeOf( const zmex::ZMexception & x ) { \
return ( (_classInfo.name() == x.name()) && \
(_classInfo.facility() == x.facility() ) ); } \
\
static bool isBaseOf( const zmex::ZMexception & x ) { \
return ( x.isDerivedFrom (_classInfo.name(), \
_classInfo.facility()) ); } \
\
static void logNMore( const int N ) { \
_classInfo.logNMore( N ); } \

Definition at line 354 of file Exceptions/ZMexception.h.

◆ ZMexStandardContents

#define ZMexStandardContents (   Parent,
  Class 
)

Definition at line 480 of file Exceptions/ZMexception.h.

◆ ZMexStandardDefinition

#define ZMexStandardDefinition (   Parent,
  Class 
)
Value:
class Class : public Parent { \
ZMexStandardContents(Parent,Class) \
} \

Definition at line 523 of file Exceptions/ZMexception.h.

◆ ZMexVirtualMethods

#define ZMexVirtualMethods (   Parent,
  Class 
)
Value:
\
virtual Class * clone() const { \
return new Class( *this ); } \
\
virtual zmex::ZMexClassInfo & classInfo() const { \
return Class::_classInfo; } \
\
virtual zmex::ZMexAction handleMe() const { \
/* DEBUG std::cerr << #Class "::handleMe()" << std::endl; */ \
Class::classInfo().getHandler().takeCareOf( *this ); \
\
virtual zmex::ZMexLogResult logMe() const { \
/* DEBUG std::cerr << #Class "::logMe()" << std::endl; */ \
Class::classInfo().getLogger().emit( *this ); \
\
virtual bool isDerivedFrom( const std::string aName, \
const std::string aFacility ) const { \
return aName == name() && aFacility == facility() \
? true \
: Parent::isDerivedFrom( aName, aFacility ); \
} \

Definition at line 402 of file Exceptions/ZMexception.h.

zmex::ZMexLogResult
ZMexLogResult
Definition: CLHEP/Exceptions/ZMexLogResult.h:19
zmex::ZMexAction
ZMexAction
Definition: CLHEP/Exceptions/ZMexAction.h:20
zmex::ZMexHandler
Definition: CLHEP/Exceptions/ZMexHandler.h:96
zmex::ZMexception
Definition: CLHEP/Exceptions/ZMexception.h:163
zmex::ZMexLOGVIAPARENT
@ ZMexLOGVIAPARENT
Definition: CLHEP/Exceptions/ZMexLogResult.h:19
zmex::ZMexClassInfo
Definition: CLHEP/Exceptions/ZMexClassInfo.h:94
N
the goal is to keep the overall false rejection probability down at the to level For each validated we discuss which of course is by necessity relative timing We take the time for a single random via one of the fastest good and at any rate the ratios will vary by around depending on the processor and memory configuration used A timing for a distribution of units would mean no time used beyond the uniform random Summary Distribution Validated Validation Rejected Past N RandGauss N
Definition: validation.doc:48
handleMe
ZMthrow event sequence W E Dec These notes document the sequence of significant events set into motion by execution of a single passing on the hereinafter known simply as together with the line number and file name from which the macro is invoked It is mandatory that x be of a type derived from class ZMexception::The result of or b ignored as the macro s final act and then calls x handleMe()
zmex::ZMexHANDLEVIAPARENT
@ ZMexHANDLEVIAPARENT
Definition: CLHEP/Exceptions/ZMexAction.h:20
result
this formatted text is the function s string result this method sends the formatted string s to the ostream destination specified when the logger was instantiated as its result
Definition: ZMthrow_event_sequence.txt:148
zmex::ZMexSeverity
ZMexSeverity
Definition: CLHEP/Exceptions/ZMexSeverity.h:32
zmex::ZMexLogger
Definition: CLHEP/Exceptions/ZMexLogger.h:256
x
any side effects of that construction would occur twice The semantics of throw x
Definition: whyZMthrowRethrows.txt:37
name
user code seldom needs to call this function directly ZMerrno whether or not they are still recorded ZMerrno whether or not they are still since the user counter was last ZMerrno name() gives the(string) name of the latest recorded exception
logMe
if another namely the one associated with the parent class of x s class Finally as documented above and b returns that function s result as its own result this method calls flag into the name of the handler being used together with the value of the throw ignore flag Based on filtering it calls the logMe() function associated with x 's class. Finally