Geant4 11.1.1
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/*
2 __ __ _
3 ___\ \/ /_ __ __ _| |_
4 / _ \\ /| '_ \ / _` | __|
5 | __// \| |_) | (_| | |_
6 \___/_/\_\ .__/ \__,_|\__|
7 |_| XML parser
8
9 Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
10 Copyright (c) 2000 Clark Cooper <[email protected]>
11 Copyright (c) 2002 Karl Waclawek <[email protected]>
12 Copyright (c) 2002 Fred L. Drake, Jr. <[email protected]>
13 Copyright (c) 2017 Sebastian Pipping <[email protected]>
14 Licensed under the MIT license:
15
16 Permission is hereby granted, free of charge, to any person obtaining
17 a copy of this software and associated documentation files (the
18 "Software"), to deal in the Software without restriction, including
19 without limitation the rights to use, copy, modify, merge, publish,
20 distribute, sublicense, and/or sell copies of the Software, and to permit
21 persons to whom the Software is furnished to do so, subject to the
22 following conditions:
23
24 The above copyright notice and this permission notice shall be included
25 in all copies or substantial portions of the Software.
26
27 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
30 NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
31 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
32 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
33 USE OR OTHER DEALINGS IN THE SOFTWARE.
34*/
35
36#ifndef XmlRole_INCLUDED
37#define XmlRole_INCLUDED 1
38
39#ifdef __VMS
40/* 0 1 2 3 0 1 2 3
41 1234567890123456789012345678901 1234567890123456789012345678901 */
42# define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
43#endif
44
45#include "xmltok.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51enum {
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 */
117
118typedef struct prolog_state {
119 int(PTRCALL *handler)(struct prolog_state *state, int tok, const char *ptr,
120 const char *end, const ENCODING *enc);
121 unsigned level;
123#ifdef XML_DTD
124 unsigned includeLevel;
125 int documentEntity;
126 int inEntityValue;
127#endif /* XML_DTD */
129
131#ifdef XML_DTD
132void XmlPrologStateInitExternalEntity(PROLOG_STATE *);
133#endif /* XML_DTD */
134
135#define XmlTokenRole(state, tok, ptr, end, enc) \
136 (((state)->handler)(state, tok, ptr, end, enc))
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* not XmlRole_INCLUDED */
#define PTRCALL
Definition: internal.h:85
int const char const char * end
Definition: xmlrole.h:120
int const char const char const ENCODING * enc
Definition: xmlrole.h:120
unsigned level
Definition: xmlrole.h:121
int(PTRCALL *handler)(struct prolog_state *state
int const char * ptr
Definition: xmlrole.h:119
int role_none
Definition: xmlrole.h:122
@ 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
void XmlPrologStateInit(PROLOG_STATE *)
Definition: xmlrole.c:1237
struct prolog_state PROLOG_STATE