Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xmlrole.h
Go to the documentation of this file.
1/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 See the file COPYING for copying permission.
3*/
4
5#ifndef XmlRole_INCLUDED
6#define XmlRole_INCLUDED 1
7
8#ifdef __VMS
9/* 0 1 2 3 0 1 2 3
10 1234567890123456789012345678901 1234567890123456789012345678901 */
11#define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
12#endif
13
14#include "xmltok.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20enum {
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};
86
87typedef struct prolog_state {
88 int (PTRCALL *handler) (struct prolog_state *state,
89 int tok,
90 const char *ptr,
91 const char *end,
92 const ENCODING *enc);
93 unsigned level;
95#ifdef XML_DTD
96 unsigned includeLevel;
97 int documentEntity;
98 int inEntityValue;
99#endif /* XML_DTD */
101
103#ifdef XML_DTD
104void XmlPrologStateInitExternalEntity(PROLOG_STATE *);
105#endif /* XML_DTD */
106
107#define XmlTokenRole(state, tok, ptr, end, enc) \
108 (((state)->handler)(state, tok, ptr, end, enc))
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif /* not XmlRole_INCLUDED */
#define PTRCALL
Definition: internal.h:52
int const char const char * end
Definition: xmlrole.h:91
int const char const char const ENCODING * enc
Definition: xmlrole.h:92
unsigned level
Definition: xmlrole.h:93
int(PTRCALL *handler)(struct prolog_state *state
int const char * ptr
Definition: xmlrole.h:90
int role_none
Definition: xmlrole.h:94
@ 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
void XmlPrologStateInit(PROLOG_STATE *)
Definition: xmlrole.cc:1320
struct prolog_state PROLOG_STATE