Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xmlrole.h File Reference
#include "xmltok.h"

Go to the source code of this file.

Classes

struct  prolog_state
 

Macros

#define XmlTokenRole(state, tok, ptr, end, enc)    (((state)->handler)(state, tok, ptr, end, enc))
 

Typedefs

typedef struct prolog_state PROLOG_STATE
 

Enumerations

enum  {
  XML_ROLE_ERROR = -1 , XML_ROLE_NONE = 0 , XML_ROLE_XML_DECL , XML_ROLE_INSTANCE_START ,
  XML_ROLE_DOCTYPE_NONE , XML_ROLE_DOCTYPE_NAME , XML_ROLE_DOCTYPE_SYSTEM_ID , XML_ROLE_DOCTYPE_PUBLIC_ID ,
  XML_ROLE_DOCTYPE_INTERNAL_SUBSET , XML_ROLE_DOCTYPE_CLOSE , XML_ROLE_GENERAL_ENTITY_NAME , XML_ROLE_PARAM_ENTITY_NAME ,
  XML_ROLE_ENTITY_NONE , XML_ROLE_ENTITY_VALUE , XML_ROLE_ENTITY_SYSTEM_ID , XML_ROLE_ENTITY_PUBLIC_ID ,
  XML_ROLE_ENTITY_COMPLETE , XML_ROLE_ENTITY_NOTATION_NAME , XML_ROLE_NOTATION_NONE , XML_ROLE_NOTATION_NAME ,
  XML_ROLE_NOTATION_SYSTEM_ID , XML_ROLE_NOTATION_NO_SYSTEM_ID , XML_ROLE_NOTATION_PUBLIC_ID , XML_ROLE_ATTRIBUTE_NAME ,
  XML_ROLE_ATTRIBUTE_TYPE_CDATA , XML_ROLE_ATTRIBUTE_TYPE_ID , XML_ROLE_ATTRIBUTE_TYPE_IDREF , XML_ROLE_ATTRIBUTE_TYPE_IDREFS ,
  XML_ROLE_ATTRIBUTE_TYPE_ENTITY , XML_ROLE_ATTRIBUTE_TYPE_ENTITIES , XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN , XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS ,
  XML_ROLE_ATTRIBUTE_ENUM_VALUE , XML_ROLE_ATTRIBUTE_NOTATION_VALUE , XML_ROLE_ATTLIST_NONE , XML_ROLE_ATTLIST_ELEMENT_NAME ,
  XML_ROLE_IMPLIED_ATTRIBUTE_VALUE , XML_ROLE_REQUIRED_ATTRIBUTE_VALUE , XML_ROLE_DEFAULT_ATTRIBUTE_VALUE , XML_ROLE_FIXED_ATTRIBUTE_VALUE ,
  XML_ROLE_ELEMENT_NONE , XML_ROLE_ELEMENT_NAME , XML_ROLE_CONTENT_ANY , XML_ROLE_CONTENT_EMPTY ,
  XML_ROLE_CONTENT_PCDATA , XML_ROLE_GROUP_OPEN , XML_ROLE_GROUP_CLOSE , XML_ROLE_GROUP_CLOSE_REP ,
  XML_ROLE_GROUP_CLOSE_OPT , XML_ROLE_GROUP_CLOSE_PLUS , XML_ROLE_GROUP_CHOICE , XML_ROLE_GROUP_SEQUENCE ,
  XML_ROLE_CONTENT_ELEMENT , XML_ROLE_CONTENT_ELEMENT_REP , XML_ROLE_CONTENT_ELEMENT_OPT , XML_ROLE_CONTENT_ELEMENT_PLUS ,
  XML_ROLE_PI , XML_ROLE_COMMENT , XML_ROLE_PARAM_ENTITY_REF
}
 

Functions

void XmlPrologStateInit (PROLOG_STATE *)
 

Macro Definition Documentation

◆ XmlTokenRole

#define XmlTokenRole (   state,
  tok,
  ptr,
  end,
  enc 
)     (((state)->handler)(state, tok, ptr, end, enc))

Definition at line 135 of file xmlrole.h.

Typedef Documentation

◆ PROLOG_STATE

typedef struct prolog_state PROLOG_STATE

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
XML_ROLE_ERROR 
XML_ROLE_NONE 
XML_ROLE_XML_DECL 
XML_ROLE_INSTANCE_START 
XML_ROLE_DOCTYPE_NONE 
XML_ROLE_DOCTYPE_NAME 
XML_ROLE_DOCTYPE_SYSTEM_ID 
XML_ROLE_DOCTYPE_PUBLIC_ID 
XML_ROLE_DOCTYPE_INTERNAL_SUBSET 
XML_ROLE_DOCTYPE_CLOSE 
XML_ROLE_GENERAL_ENTITY_NAME 
XML_ROLE_PARAM_ENTITY_NAME 
XML_ROLE_ENTITY_NONE 
XML_ROLE_ENTITY_VALUE 
XML_ROLE_ENTITY_SYSTEM_ID 
XML_ROLE_ENTITY_PUBLIC_ID 
XML_ROLE_ENTITY_COMPLETE 
XML_ROLE_ENTITY_NOTATION_NAME 
XML_ROLE_NOTATION_NONE 
XML_ROLE_NOTATION_NAME 
XML_ROLE_NOTATION_SYSTEM_ID 
XML_ROLE_NOTATION_NO_SYSTEM_ID 
XML_ROLE_NOTATION_PUBLIC_ID 
XML_ROLE_ATTRIBUTE_NAME 
XML_ROLE_ATTRIBUTE_TYPE_CDATA 
XML_ROLE_ATTRIBUTE_TYPE_ID 
XML_ROLE_ATTRIBUTE_TYPE_IDREF 
XML_ROLE_ATTRIBUTE_TYPE_IDREFS 
XML_ROLE_ATTRIBUTE_TYPE_ENTITY 
XML_ROLE_ATTRIBUTE_TYPE_ENTITIES 
XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN 
XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS 
XML_ROLE_ATTRIBUTE_ENUM_VALUE 
XML_ROLE_ATTRIBUTE_NOTATION_VALUE 
XML_ROLE_ATTLIST_NONE 
XML_ROLE_ATTLIST_ELEMENT_NAME 
XML_ROLE_IMPLIED_ATTRIBUTE_VALUE 
XML_ROLE_REQUIRED_ATTRIBUTE_VALUE 
XML_ROLE_DEFAULT_ATTRIBUTE_VALUE 
XML_ROLE_FIXED_ATTRIBUTE_VALUE 
XML_ROLE_ELEMENT_NONE 
XML_ROLE_ELEMENT_NAME 
XML_ROLE_CONTENT_ANY 
XML_ROLE_CONTENT_EMPTY 
XML_ROLE_CONTENT_PCDATA 
XML_ROLE_GROUP_OPEN 
XML_ROLE_GROUP_CLOSE 
XML_ROLE_GROUP_CLOSE_REP 
XML_ROLE_GROUP_CLOSE_OPT 
XML_ROLE_GROUP_CLOSE_PLUS 
XML_ROLE_GROUP_CHOICE 
XML_ROLE_GROUP_SEQUENCE 
XML_ROLE_CONTENT_ELEMENT 
XML_ROLE_CONTENT_ELEMENT_REP 
XML_ROLE_CONTENT_ELEMENT_OPT 
XML_ROLE_CONTENT_ELEMENT_PLUS 
XML_ROLE_PI 
XML_ROLE_COMMENT 
XML_ROLE_PARAM_ENTITY_REF 

Definition at line 51 of file xmlrole.h.

51 {
52 XML_ROLE_ERROR = -1,
53 XML_ROLE_NONE = 0,
110#ifdef XML_DTD
111 XML_ROLE_TEXT_DECL,
112 XML_ROLE_IGNORE_SECT,
113 XML_ROLE_INNER_PARAM_ENTITY_REF,
114#endif /* XML_DTD */
116};
@ XML_ROLE_GROUP_CHOICE
Definition: xmlrole.h:102
@ XML_ROLE_NOTATION_PUBLIC_ID
Definition: xmlrole.h:74
@ XML_ROLE_ERROR
Definition: xmlrole.h:52
@ XML_ROLE_GROUP_CLOSE_REP
Definition: xmlrole.h:99
@ XML_ROLE_CONTENT_PCDATA
Definition: xmlrole.h:96
@ XML_ROLE_CONTENT_ELEMENT_REP
Definition: xmlrole.h:105
@ XML_ROLE_ENTITY_COMPLETE
Definition: xmlrole.h:68
@ XML_ROLE_DOCTYPE_INTERNAL_SUBSET
Definition: xmlrole.h:60
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITY
Definition: xmlrole.h:80
@ XML_ROLE_NOTATION_NO_SYSTEM_ID
Definition: xmlrole.h:73
@ XML_ROLE_DOCTYPE_NONE
Definition: xmlrole.h:56
@ XML_ROLE_PARAM_ENTITY_REF
Definition: xmlrole.h:115
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITIES
Definition: xmlrole.h:81
@ XML_ROLE_GROUP_CLOSE
Definition: xmlrole.h:98
@ XML_ROLE_DOCTYPE_CLOSE
Definition: xmlrole.h:61
@ XML_ROLE_ENTITY_NOTATION_NAME
Definition: xmlrole.h:69
@ XML_ROLE_GROUP_SEQUENCE
Definition: xmlrole.h:103
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS
Definition: xmlrole.h:83
@ XML_ROLE_ATTLIST_ELEMENT_NAME
Definition: xmlrole.h:87
@ XML_ROLE_GROUP_CLOSE_OPT
Definition: xmlrole.h:100
@ XML_ROLE_IMPLIED_ATTRIBUTE_VALUE
Definition: xmlrole.h:88
@ XML_ROLE_ATTRIBUTE_TYPE_CDATA
Definition: xmlrole.h:76
@ XML_ROLE_COMMENT
Definition: xmlrole.h:109
@ XML_ROLE_ATTRIBUTE_ENUM_VALUE
Definition: xmlrole.h:84
@ XML_ROLE_ENTITY_SYSTEM_ID
Definition: xmlrole.h:66
@ XML_ROLE_CONTENT_ELEMENT
Definition: xmlrole.h:104
@ XML_ROLE_ATTLIST_NONE
Definition: xmlrole.h:86
@ XML_ROLE_ATTRIBUTE_NOTATION_VALUE
Definition: xmlrole.h:85
@ XML_ROLE_DOCTYPE_SYSTEM_ID
Definition: xmlrole.h:58
@ XML_ROLE_NOTATION_SYSTEM_ID
Definition: xmlrole.h:72
@ XML_ROLE_PI
Definition: xmlrole.h:108
@ XML_ROLE_ATTRIBUTE_NAME
Definition: xmlrole.h:75
@ XML_ROLE_CONTENT_ANY
Definition: xmlrole.h:94
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN
Definition: xmlrole.h:82
@ XML_ROLE_ATTRIBUTE_TYPE_ID
Definition: xmlrole.h:77
@ XML_ROLE_ENTITY_NONE
Definition: xmlrole.h:64
@ XML_ROLE_NONE
Definition: xmlrole.h:53
@ XML_ROLE_ELEMENT_NONE
Definition: xmlrole.h:92
@ XML_ROLE_ENTITY_PUBLIC_ID
Definition: xmlrole.h:67
@ XML_ROLE_INSTANCE_START
Definition: xmlrole.h:55
@ XML_ROLE_DOCTYPE_NAME
Definition: xmlrole.h:57
@ XML_ROLE_NOTATION_NAME
Definition: xmlrole.h:71
@ XML_ROLE_CONTENT_ELEMENT_PLUS
Definition: xmlrole.h:107
@ XML_ROLE_GENERAL_ENTITY_NAME
Definition: xmlrole.h:62
@ XML_ROLE_PARAM_ENTITY_NAME
Definition: xmlrole.h:63
@ XML_ROLE_DEFAULT_ATTRIBUTE_VALUE
Definition: xmlrole.h:90
@ XML_ROLE_NOTATION_NONE
Definition: xmlrole.h:70
@ XML_ROLE_XML_DECL
Definition: xmlrole.h:54
@ XML_ROLE_GROUP_CLOSE_PLUS
Definition: xmlrole.h:101
@ XML_ROLE_REQUIRED_ATTRIBUTE_VALUE
Definition: xmlrole.h:89
@ XML_ROLE_GROUP_OPEN
Definition: xmlrole.h:97
@ XML_ROLE_CONTENT_EMPTY
Definition: xmlrole.h:95
@ XML_ROLE_FIXED_ATTRIBUTE_VALUE
Definition: xmlrole.h:91
@ XML_ROLE_CONTENT_ELEMENT_OPT
Definition: xmlrole.h:106
@ XML_ROLE_ATTRIBUTE_TYPE_IDREFS
Definition: xmlrole.h:79
@ XML_ROLE_DOCTYPE_PUBLIC_ID
Definition: xmlrole.h:59
@ XML_ROLE_ATTRIBUTE_TYPE_IDREF
Definition: xmlrole.h:78
@ XML_ROLE_ELEMENT_NAME
Definition: xmlrole.h:93
@ XML_ROLE_ENTITY_VALUE
Definition: xmlrole.h:65

Function Documentation

◆ XmlPrologStateInit()

void XmlPrologStateInit ( PROLOG_STATE state)

Definition at line 1237 of file xmlrole.c.

1237 {
1238 state->handler = prolog0;
1239#ifdef XML_DTD
1240 state->documentEntity = 1;
1241 state->includeLevel = 0;
1242 state->inEntityValue = 0;
1243#endif /* XML_DTD */
1244}