Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
pugi::xml_parse_result Struct Reference

#include <pugixml.hpp>

Public Member Functions

 xml_parse_result ()
 operator bool () const
const char * description () const

Public Attributes

xml_parse_status status
ptrdiff_t offset
xml_encoding encoding

Detailed Description

Definition at line 1007 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_parse_result()

PUGI__FN pugi::xml_parse_result::xml_parse_result ( )

Definition at line 7028 of file pugixml.cc.

7029 {
7030 }
@ encoding_auto
Definition pugixml.hpp:229
@ status_internal_error
Definition pugixml.hpp:987
xml_encoding encoding
Definition pugixml.hpp:1016
xml_parse_status status
Definition pugixml.hpp:1010

Member Function Documentation

◆ description()

PUGI__FN const char * pugi::xml_parse_result::description ( ) const

Definition at line 7037 of file pugixml.cc.

7038 {
7039 switch (status)
7040 {
7041 case status_ok: return "No error";
7042
7043 case status_file_not_found: return "File was not found";
7044 case status_io_error: return "Error reading from file/stream";
7045 case status_out_of_memory: return "Could not allocate memory";
7046 case status_internal_error: return "Internal error occurred";
7047
7048 case status_unrecognized_tag: return "Could not determine tag type";
7049
7050 case status_bad_pi: return "Error parsing document declaration/processing instruction";
7051 case status_bad_comment: return "Error parsing comment";
7052 case status_bad_cdata: return "Error parsing CDATA section";
7053 case status_bad_doctype: return "Error parsing document type declaration";
7054 case status_bad_pcdata: return "Error parsing PCDATA section";
7055 case status_bad_start_element: return "Error parsing start element tag";
7056 case status_bad_attribute: return "Error parsing element attribute";
7057 case status_bad_end_element: return "Error parsing end element tag";
7058 case status_end_element_mismatch: return "Start-end tags mismatch";
7059
7060 case status_append_invalid_root: return "Unable to append nodes: root is not an element or document";
7061
7062 case status_no_document_element: return "No document element found";
7063
7064 default: return "Unknown error";
7065 }
7066 }
@ status_append_invalid_root
Definition pugixml.hpp:1001
@ status_end_element_mismatch
Definition pugixml.hpp:999
@ status_bad_end_element
Definition pugixml.hpp:998
@ status_io_error
Definition pugixml.hpp:985
@ status_bad_attribute
Definition pugixml.hpp:997
@ status_file_not_found
Definition pugixml.hpp:984
@ status_bad_start_element
Definition pugixml.hpp:996
@ status_ok
Definition pugixml.hpp:982
@ status_bad_comment
Definition pugixml.hpp:992
@ status_bad_doctype
Definition pugixml.hpp:994
@ status_out_of_memory
Definition pugixml.hpp:986
@ status_unrecognized_tag
Definition pugixml.hpp:989
@ status_bad_cdata
Definition pugixml.hpp:993
@ status_bad_pcdata
Definition pugixml.hpp:995
@ status_bad_pi
Definition pugixml.hpp:991
@ status_no_document_element
Definition pugixml.hpp:1003

Referenced by PoPI::Database::addDatabase().

◆ operator bool()

PUGI__FN pugi::xml_parse_result::operator bool ( ) const

Definition at line 7032 of file pugixml.cc.

7033 {
7034 return status == status_ok;
7035 }

Member Data Documentation

◆ encoding

xml_encoding pugi::xml_parse_result::encoding

Definition at line 1016 of file pugixml.hpp.

Referenced by xml_parse_result().

◆ offset

ptrdiff_t pugi::xml_parse_result::offset

Definition at line 1013 of file pugixml.hpp.

Referenced by xml_parse_result().

◆ status

xml_parse_status pugi::xml_parse_result::status

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