Skip to content

Commit bf963dc

Browse files
committed
Merge branch 'add_scip_export_to_xml_parser' into 'v80-bugfix'
use SCIP_EXPORT in xml.h See merge request integer/scip!3102
2 parents ceccf04 + a6242b9 commit bf963dc

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Features
1717
### New API functions
1818

1919
- added SCIPskipSpace
20+
- added XML parser routines from src/xml/xml.h
2021

2122
### Interfaces to external software
2223

src/xml/xml.h

+20
Original file line numberDiff line numberDiff line change
@@ -63,69 +63,81 @@ struct XML_NODE_struct
6363
};
6464

6565
/** Parse file */
66+
SCIP_EXPORT
6667
XML_NODE* xmlProcess(
6768
const char* filename /**< XML file name */
6869
);
6970

7071
/** create new node */
72+
SCIP_EXPORT
7173
XML_NODE* xmlNewNode(
7274
const char* name,
7375
int lineno
7476
);
7577

7678
/** create new attribute */
79+
SCIP_EXPORT
7780
XML_ATTR* xmlNewAttr(
7881
const char* name,
7982
const char* value
8083
);
8184

8285
/** add attribute */
86+
SCIP_EXPORT
8387
void xmlAddAttr(
8488
XML_NODE* n,
8589
XML_ATTR* a
8690
);
8791

8892
/** append child node */
93+
SCIP_EXPORT
8994
void xmlAppendChild(
9095
XML_NODE* parent,
9196
XML_NODE* child
9297
);
9398

9499
/** free node */
100+
SCIP_EXPORT
95101
void xmlFreeNode(
96102
XML_NODE* node
97103
);
98104

99105
/** output node */
106+
SCIP_EXPORT
100107
void xmlShowNode(
101108
const XML_NODE* root
102109
);
103110

104111
/** get attribute value */
112+
SCIP_EXPORT
105113
const char* xmlGetAttrval(
106114
const XML_NODE* node,
107115
const char* name
108116
);
109117

110118
/** return first node */
119+
SCIP_EXPORT
111120
const XML_NODE* xmlFirstNode(
112121
const XML_NODE* node,
113122
const char* name
114123
);
115124

116125
/** return next node */
126+
SCIP_EXPORT
117127
const XML_NODE* xmlNextNode(
118128
const XML_NODE* node,
119129
const char* name
120130
);
121131

122132
/** find node */
133+
SCIP_EXPORT
123134
const XML_NODE* xmlFindNode(
124135
const XML_NODE* node,
125136
const char* name
126137
);
127138

128139
/** find node with bound on the depth */
140+
SCIP_EXPORT
129141
const XML_NODE* xmlFindNodeMaxdepth(
130142
const XML_NODE* node, /**< current node - use start node to begin */
131143
const char* name, /**< name of tag to search for */
@@ -134,41 +146,49 @@ const XML_NODE* xmlFindNodeMaxdepth(
134146
);
135147

136148
/** return next sibling */
149+
SCIP_EXPORT
137150
const XML_NODE* xmlNextSibl(
138151
const XML_NODE* node
139152
);
140153

141154
/** return previous sibling */
155+
SCIP_EXPORT
142156
const XML_NODE* xmlPrevSibl(
143157
const XML_NODE* node
144158
);
145159

146160
/** return first child */
161+
SCIP_EXPORT
147162
const XML_NODE* xmlFirstChild(
148163
const XML_NODE* node
149164
);
150165

151166
/** return last child */
167+
SCIP_EXPORT
152168
const XML_NODE* xmlLastChild(
153169
const XML_NODE* node
154170
);
155171

156172
/** return name of node */
173+
SCIP_EXPORT
157174
const char* xmlGetName(
158175
const XML_NODE* node
159176
);
160177

161178
/** get line number */
179+
SCIP_EXPORT
162180
int xmlGetLine(
163181
const XML_NODE* node
164182
);
165183

166184
/** get data */
185+
SCIP_EXPORT
167186
const char* xmlGetData(
168187
const XML_NODE* node
169188
);
170189

171190
/** find PCDATA */
191+
SCIP_EXPORT
172192
const char* xmlFindPcdata(
173193
const XML_NODE* node,
174194
const char* name

0 commit comments

Comments
 (0)