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 <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

May 4, 2004

Copyright (c) 2003-2020, 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.

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: