Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
GenError Class Reference

#include <FunNameStack.h>

+ Inheritance diagram for GenError:

Public Member Functions

 GenError (const FunNameStack &f)
 
 GenError (const GenError &f)
 
virtual void print (std::ostream &file)
 
virtual void finish (std::ostream &file)
 
virtual ~GenError ()
 
- Public Member Functions inherited from FunNameStack
 FunNameStack (const FunNameStack &f)
 
FunNameStackoperator= (const FunNameStack &f)
 
 FunNameStack (void)
 
void set_parameters (int fs_act=1, int fs_print=0)
 
 ~FunNameStack ()
 
wl_inline int put (const char *fname)
 
wl_inline void del (int nname)
 
wl_inline void replace (const char *fname)
 

Additional Inherited Members

- Static Public Member Functions inherited from FunNameStack
static FunNameStackinstance ()
 
- Public Attributes inherited from FunNameStack
int s_print
 

Detailed Description

Definition at line 738 of file FunNameStack.h.

Constructor & Destructor Documentation

◆ GenError() [1/2]

GenError::GenError ( const FunNameStack f)
inline

Definition at line 740 of file FunNameStack.h.

740: FunNameStack(f) { ; }

◆ GenError() [2/2]

GenError::GenError ( const GenError f)
inline

Definition at line 741 of file FunNameStack.h.

741: FunNameStack(f) { ; }

◆ ~GenError()

virtual GenError::~GenError ( )
inlinevirtual

Definition at line 744 of file FunNameStack.h.

744{}

Member Function Documentation

◆ finish()

void GenError::finish ( std::ostream &  file)
virtual

Definition at line 514 of file FunNameStack.cpp.

514 {
515 print(file);
516 exit(1);
517}
virtual void print(std::ostream &file)

◆ print()

void GenError::print ( std::ostream &  file)
virtual

Definition at line 509 of file FunNameStack.cpp.

509 {
510 file << "GenError::print: ERROR detected in:\n"
511 << statcast(FunNameStack*, this) << '\n';
512 //<<static_cast<FunNameStack*>(this)<<'\n';
513}
#define statcast(type, name)

Referenced by finish().


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