Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4GDMLErrorHandler Class Reference

#include <G4GDMLRead.hh>

Inheritance diagram for G4GDMLErrorHandler:

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.

61 { 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().

73  {
74  if (Suppress) { return; }
75  char* message = xercesc::XMLString::transcode(exception.getMessage());
76  G4cout << "G4GDML: VALIDATION ERROR! " << message
77  << " at line: " << exception.getLineNumber() << G4endl;
78  xercesc::XMLString::release(&message);
79  }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4GDMLErrorHandler::fatalError ( const xercesc::SAXParseException &  exception)
inline

Definition at line 81 of file G4GDMLRead.hh.

References error().

82  {
83  error(exception);
84  }
void error(const xercesc::SAXParseException &exception)
Definition: G4GDMLRead.hh:72
void G4GDMLErrorHandler::resetErrors ( )
inline

Definition at line 85 of file G4GDMLRead.hh.

85 {}
void G4GDMLErrorHandler::warning ( const xercesc::SAXParseException &  exception)
inline

Definition at line 63 of file G4GDMLRead.hh.

References G4cout, and G4endl.

64  {
65  if (Suppress) { return; }
66  char* message = xercesc::XMLString::transcode(exception.getMessage());
67  G4cout << "G4GDML: VALIDATION WARNING! " << message
68  << " at line: " << exception.getLineNumber() << G4endl;
69  xercesc::XMLString::release(&message);
70  }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

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