Public Member Functions | Private Attributes | Friends | List of all members
genie::exceptions::EVGThreadException Class Reference

An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (fast-fwd at the end or step-back) More...

#include <EVGThreadException.h>

Public Member Functions

 EVGThreadException ()
 
 EVGThreadException (const EVGThreadException &exception)
 
 ~EVGThreadException ()
 
void SetReason (string reason)
 
void SwitchOnFastForward (void)
 
void SwitchOnStepBack (void)
 
void SetReturnStep (int s)
 
string ShowReason (void) const
 
bool FastForward (void) const
 
bool StepBack (void) const
 
int ReturnStep (void) const
 
void Init (void)
 
void Copy (const EVGThreadException &exception)
 
void Print (ostream &stream) const
 

Private Attributes

bool fFastFwd
 
bool fStepBack
 
int fReturnStep
 
string fReason
 

Friends

ostream & operator<< (ostream &stream, const EVGThreadException &exception)
 

Detailed Description

An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (fast-fwd at the end or step-back)

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

September 27, 2005

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 35 of file EVGThreadException.h.

Constructor & Destructor Documentation

EVGThreadException::EVGThreadException ( )

Definition at line 28 of file EVGThreadException.cxx.

29 {
30  this->Init();
31 }
EVGThreadException::EVGThreadException ( const EVGThreadException exception)

Definition at line 33 of file EVGThreadException.cxx.

34 {
35  this->Copy(exc);
36 }
void Copy(const EVGThreadException &exception)
EVGThreadException::~EVGThreadException ( )

Definition at line 38 of file EVGThreadException.cxx.

39 {
40 
41 }

Member Function Documentation

void EVGThreadException::Copy ( const EVGThreadException exception)

Definition at line 51 of file EVGThreadException.cxx.

bool genie::exceptions::EVGThreadException::FastForward ( void  ) const
inline

Definition at line 49 of file EVGThreadException.h.

void EVGThreadException::Init ( void  )
void EVGThreadException::Print ( ostream &  stream) const

Definition at line 59 of file EVGThreadException.cxx.

60 {
61  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
62 }
QTextStream & endl(QTextStream &s)
int genie::exceptions::EVGThreadException::ReturnStep ( void  ) const
inline

Definition at line 51 of file EVGThreadException.h.

void genie::exceptions::EVGThreadException::SetReason ( string  reason)
inline

Definition at line 43 of file EVGThreadException.h.

void genie::exceptions::EVGThreadException::SetReturnStep ( int  s)
inline

Definition at line 46 of file EVGThreadException.h.

46 { fReturnStep = TMath::Max(0,s); }
static QCString * s
Definition: config.cpp:1042
string genie::exceptions::EVGThreadException::ShowReason ( void  ) const
inline

Definition at line 48 of file EVGThreadException.h.

bool genie::exceptions::EVGThreadException::StepBack ( void  ) const
inline

Definition at line 50 of file EVGThreadException.h.

void genie::exceptions::EVGThreadException::SwitchOnFastForward ( void  )
inline

Definition at line 44 of file EVGThreadException.h.

void genie::exceptions::EVGThreadException::SwitchOnStepBack ( void  )
inline

Definition at line 45 of file EVGThreadException.h.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const EVGThreadException exception 
)
friend

Definition at line 20 of file EVGThreadException.cxx.

21  {
22  exc.Print(stream);
23  return stream;
24  }

Member Data Documentation

bool genie::exceptions::EVGThreadException::fFastFwd
private

Definition at line 62 of file EVGThreadException.h.

string genie::exceptions::EVGThreadException::fReason
private

Definition at line 65 of file EVGThreadException.h.

int genie::exceptions::EVGThreadException::fReturnStep
private

Definition at line 64 of file EVGThreadException.h.

bool genie::exceptions::EVGThreadException::fStepBack
private

Definition at line 63 of file EVGThreadException.h.


The documentation for this class was generated from the following files: