Geant4 10.7.0
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 107 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 20 of file xmlrole.h.

20 {
21 XML_ROLE_ERROR = -1,
22 XML_ROLE_NONE = 0,
79#ifdef XML_DTD
80 XML_ROLE_TEXT_DECL,
81 XML_ROLE_IGNORE_SECT,
82 XML_ROLE_INNER_PARAM_ENTITY_REF,
83#endif /* XML_DTD */
85};
@ XML_ROLE_GROUP_CHOICE
Definition: xmlrole.h:71
@ XML_ROLE_NOTATION_PUBLIC_ID
Definition: xmlrole.h:43
@ XML_ROLE_ERROR
Definition: xmlrole.h:21
@ XML_ROLE_GROUP_CLOSE_REP
Definition: xmlrole.h:68
@ XML_ROLE_CONTENT_PCDATA
Definition: xmlrole.h:65
@ XML_ROLE_CONTENT_ELEMENT_REP
Definition: xmlrole.h:74
@ XML_ROLE_ENTITY_COMPLETE
Definition: xmlrole.h:37
@ XML_ROLE_DOCTYPE_INTERNAL_SUBSET
Definition: xmlrole.h:29
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITY
Definition: xmlrole.h:49
@ XML_ROLE_NOTATION_NO_SYSTEM_ID
Definition: xmlrole.h:42
@ XML_ROLE_DOCTYPE_NONE
Definition: xmlrole.h:25
@ XML_ROLE_PARAM_ENTITY_REF
Definition: xmlrole.h:84
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITIES
Definition: xmlrole.h:50
@ XML_ROLE_GROUP_CLOSE
Definition: xmlrole.h:67
@ XML_ROLE_DOCTYPE_CLOSE
Definition: xmlrole.h:30
@ XML_ROLE_ENTITY_NOTATION_NAME
Definition: xmlrole.h:38
@ XML_ROLE_GROUP_SEQUENCE
Definition: xmlrole.h:72
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS
Definition: xmlrole.h:52
@ XML_ROLE_ATTLIST_ELEMENT_NAME
Definition: xmlrole.h:56
@ XML_ROLE_GROUP_CLOSE_OPT
Definition: xmlrole.h:69
@ XML_ROLE_IMPLIED_ATTRIBUTE_VALUE
Definition: xmlrole.h:57
@ XML_ROLE_ATTRIBUTE_TYPE_CDATA
Definition: xmlrole.h:45
@ XML_ROLE_COMMENT
Definition: xmlrole.h:78
@ XML_ROLE_ATTRIBUTE_ENUM_VALUE
Definition: xmlrole.h:53
@ XML_ROLE_ENTITY_SYSTEM_ID
Definition: xmlrole.h:35
@ XML_ROLE_CONTENT_ELEMENT
Definition: xmlrole.h:73
@ XML_ROLE_ATTLIST_NONE
Definition: xmlrole.h:55
@ XML_ROLE_ATTRIBUTE_NOTATION_VALUE
Definition: xmlrole.h:54
@ XML_ROLE_DOCTYPE_SYSTEM_ID
Definition: xmlrole.h:27
@ XML_ROLE_NOTATION_SYSTEM_ID
Definition: xmlrole.h:41
@ XML_ROLE_PI
Definition: xmlrole.h:77
@ XML_ROLE_ATTRIBUTE_NAME
Definition: xmlrole.h:44
@ XML_ROLE_CONTENT_ANY
Definition: xmlrole.h:63
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN
Definition: xmlrole.h:51
@ XML_ROLE_ATTRIBUTE_TYPE_ID
Definition: xmlrole.h:46
@ XML_ROLE_ENTITY_NONE
Definition: xmlrole.h:33
@ XML_ROLE_NONE
Definition: xmlrole.h:22
@ XML_ROLE_ELEMENT_NONE
Definition: xmlrole.h:61
@ XML_ROLE_ENTITY_PUBLIC_ID
Definition: xmlrole.h:36
@ XML_ROLE_INSTANCE_START
Definition: xmlrole.h:24
@ XML_ROLE_DOCTYPE_NAME
Definition: xmlrole.h:26
@ XML_ROLE_NOTATION_NAME
Definition: xmlrole.h:40
@ XML_ROLE_CONTENT_ELEMENT_PLUS
Definition: xmlrole.h:76
@ XML_ROLE_GENERAL_ENTITY_NAME
Definition: xmlrole.h:31
@ XML_ROLE_PARAM_ENTITY_NAME
Definition: xmlrole.h:32
@ XML_ROLE_DEFAULT_ATTRIBUTE_VALUE
Definition: xmlrole.h:59
@ XML_ROLE_NOTATION_NONE
Definition: xmlrole.h:39
@ XML_ROLE_XML_DECL
Definition: xmlrole.h:23
@ XML_ROLE_GROUP_CLOSE_PLUS
Definition: xmlrole.h:70
@ XML_ROLE_REQUIRED_ATTRIBUTE_VALUE
Definition: xmlrole.h:58
@ XML_ROLE_GROUP_OPEN
Definition: xmlrole.h:66
@ XML_ROLE_CONTENT_EMPTY
Definition: xmlrole.h:64
@ XML_ROLE_FIXED_ATTRIBUTE_VALUE
Definition: xmlrole.h:60
@ XML_ROLE_CONTENT_ELEMENT_OPT
Definition: xmlrole.h:75
@ XML_ROLE_ATTRIBUTE_TYPE_IDREFS
Definition: xmlrole.h:48
@ XML_ROLE_DOCTYPE_PUBLIC_ID
Definition: xmlrole.h:28
@ XML_ROLE_ATTRIBUTE_TYPE_IDREF
Definition: xmlrole.h:47
@ XML_ROLE_ELEMENT_NAME
Definition: xmlrole.h:62
@ XML_ROLE_ENTITY_VALUE
Definition: xmlrole.h:34

Function Documentation

◆ XmlPrologStateInit()

void XmlPrologStateInit ( PROLOG_STATE state)

Definition at line 1320 of file xmlrole.cc.

1321{
1322 state->handler = prolog0;
1323#ifdef XML_DTD
1324 state->documentEntity = 1;
1325 state->includeLevel = 0;
1326 state->inEntityValue = 0;
1327#endif /* XML_DTD */
1328}