GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
genie::XmlParserStatus Class Reference

Encapsulates an XML document parsing status. More...

#include <XmlParserStatus.h>

Static Public Member Functions

static const char * AsString (XmlParserStatus_t status)
 

Detailed Description

Encapsulates an XML document parsing status.

Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
May 4, 2004
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 34 of file XmlParserStatus.h.

Member Function Documentation

static const char* genie::XmlParserStatus::AsString ( XmlParserStatus_t  status)
inlinestatic

Definition at line 37 of file XmlParserStatus.h.

References genie::kXmlEmpty, genie::kXmlInvalidRoot, genie::kXmlNotParsed, genie::kXmlOK, and genie::kXmlUndefined.

Referenced by genie::FermiMomentumTablePool::LoadTables().

37  {
38  switch(status) {
39  case kXmlUndefined: return "Undefined state"; break;
40  case kXmlOK: return "XML document succesfully parsed"; break;
41  case kXmlNotParsed: return "XML document parsing failed"; break;
42  case kXmlEmpty: return "XML document is empty"; break;
43  case kXmlInvalidRoot: return "XML document has invalid root element"; break;
44  default: return "unrecognized XMLParseStatus_t enum"; break;
45  }
46  return "unrecognized XMLParseStatus_t enum";
47  }

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