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

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.

Namespaces

namespace  zmex

Classes

class  zmex::ZMexception

Defines

#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


Define Documentation

#define ZMEX

Definition at line 128 of file ZMexception.h.

#define ZMEXCEPTION_ICC

Definition at line 535 of file ZMexception.h.

#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 ZMexception.h.

#define ZMexStandardContents ( Parent,
Class   ) 

Definition at line 480 of file ZMexception.h.

#define ZMexStandardDefinition ( Parent,
Class   ) 

Value:

class Class : public Parent {                                   \
    ZMexStandardContents(Parent,Class)                                  \
  }                                                                     \

Definition at line 523 of file ZMexception.h.

#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; */      \
    zmex::ZMexLogResult result =                                \
                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 );                      \
  }                                                                     \

Definition at line 402 of file ZMexception.h.


Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7