CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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

namespace  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 ()
 

Variables

std::string zmex::ZMexUserActivity = ""
 
int zmex::ZMexUserNumericalTag = 0
 

Macro Definition Documentation

◆ STRING_INCLUDED

#define STRING_INCLUDED

Definition at line 102 of file ZMexception.h.

◆ ZMEX

#define ZMEX

Definition at line 128 of file ZMexception.h.

◆ ZMEXCEPTION_ICC

#define ZMEXCEPTION_ICC

Definition at line 535 of file 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 ); } \
virtual std::string facility() const
Definition: ZMexception.cc:95
virtual bool isDerivedFrom(const std::string, const std::string) const
Definition: ZMexception.h:457
virtual std::string name() const
Definition: ZMexception.cc:106
ZMexSeverity
Definition: ZMexSeverity.h:32

Definition at line 354 of file ZMexception.h.

◆ ZMexStandardContents

#define ZMexStandardContents (   Parent,
  Class 
)

Definition at line 480 of file ZMexception.h.

◆ ZMexStandardDefinition

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

Definition at line 523 of file 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; */ \
zmex::ZMexAction result = \
Class::classInfo().getHandler().takeCareOf( *this ); \
return (result == zmex::ZMexHANDLEVIAPARENT) ? \
Parent::handleMe() : result; } \
\
virtual zmex::ZMexLogResult logMe() const { \
/* DEBUG std::cerr << #Class "::logMe()" << std::endl; */ \
Class::classInfo().getLogger().emit( *this ); \
return (result == zmex::ZMexLOGVIAPARENT) ? \
Parent::logMe() : result; } \
\
virtual bool isDerivedFrom( const std::string aName, \
const std::string aFacility ) const { \
return aName == name() && aFacility == facility() \
? true \
: Parent::isDerivedFrom( aName, aFacility ); \
} \
ZMexHandler getHandler() const
virtual ZMexAction takeCareOf(const ZMexception &x)
Definition: ZMexHandler.h:112
ZMexAction
Definition: ZMexAction.h:20
@ ZMexHANDLEVIAPARENT
Definition: ZMexAction.h:20
ZMexLogResult
Definition: ZMexLogResult.h:19
@ ZMexLOGVIAPARENT
Definition: ZMexLogResult.h:19

Definition at line 402 of file ZMexception.h.