G4GDMLErrorHandler Class Reference

#include <G4GDMLRead.hh>


Public Member Functions

 G4GDMLErrorHandler (const G4bool set)
void warning (const xercesc::SAXParseException &exception)
void error (const xercesc::SAXParseException &exception)
void fatalError (const xercesc::SAXParseException &exception)
void resetErrors ()


Detailed Description

Definition at line 55 of file G4GDMLRead.hh.


Constructor & Destructor Documentation

G4GDMLErrorHandler::G4GDMLErrorHandler ( const G4bool  set  )  [inline]

Definition at line 61 of file G4GDMLRead.hh.

00061 { Suppress = set; }


Member Function Documentation

void G4GDMLErrorHandler::error ( const xercesc::SAXParseException &  exception  )  [inline]

Definition at line 72 of file G4GDMLRead.hh.

References G4cout, and G4endl.

Referenced by fatalError().

00073    {
00074       if (Suppress)  { return; }
00075       char* message = xercesc::XMLString::transcode(exception.getMessage());
00076       G4cout << "G4GDML: VALIDATION ERROR! " << message
00077              << " at line: " << exception.getLineNumber() << G4endl;
00078       xercesc::XMLString::release(&message);
00079    }

void G4GDMLErrorHandler::fatalError ( const xercesc::SAXParseException &  exception  )  [inline]

Definition at line 81 of file G4GDMLRead.hh.

References error().

00082    {
00083       error(exception);
00084    }

void G4GDMLErrorHandler::resetErrors (  )  [inline]

Definition at line 85 of file G4GDMLRead.hh.

00085 {}

void G4GDMLErrorHandler::warning ( const xercesc::SAXParseException &  exception  )  [inline]

Definition at line 63 of file G4GDMLRead.hh.

References G4cout, and G4endl.

00064    {
00065       if (Suppress)  { return; }
00066       char* message = xercesc::XMLString::transcode(exception.getMessage());
00067       G4cout << "G4GDML: VALIDATION WARNING! " << message
00068              << " at line: " << exception.getLineNumber() << G4endl;
00069       xercesc::XMLString::release(&message);
00070    }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:02 2013 for Geant4 by  doxygen 1.4.7