ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/rmsdk/xpath.h

Source at commit 1f582f55f35b3a6898ced8d388e043ee81168bd1 created 4 months 21 days ago.
By Grégory Soutadé, First clean working version
1/*
2 File automatically generated by SOAdvancedDissector.py
3 More information at http://indefero.soutade.fr/p/soadvanceddissector
4*/
5
6#ifndef _XPATH_H
7#define _XPATH_H
8
9#include <uft.h>
10
11namespace mdom {
12 class Node;
13 class Reference;
14};
15
16namespace xpath {
17
18 class Parser;
19 class AttributeParser;
20 class AxesNodeTest;
21 class Context;
22 class CurlyBracketAttributeParser;
23 class CurlyBracketExpression;
24 class Dependency;
25 class DependencyType;
26 class DynamicContext;
27 class ExplicitReference;
28 class Expression;
29 class Function;
30 class NodeTest;
31 class NodeTypeTest;
32 class Operator;
33 class ResultType;
34 class Root;
35 class Scan;
36 class SimpleMatch;
37 class SimpleUserFunction;
38 class StaticContext;
39 class Step;
40 class StepDynamicContext;
41 class Variable;
42 class XPathIdMatch;
43 class XPathVTable;
44 class YaccParser;
45
46
47 class Error {};
48 class Token {};
49
50 class Parser: public uft::ValueParser
51 {
52 public:
53 virtual void parse(uft::ParserContext*, uft::Value const&) const;
54 virtual void getValidStartChars() const;
55 virtual void handlerParseFailure(uft::ParserContext*, uft::Value const&) const;
56
57 };
58
59 class AttributeParser: public xpath::Parser
60 {
61 public:
62 virtual void parse(uft::ParserContext*, uft::Value const&) const;
63 virtual void getValidStartChars() const;
64 virtual void handlerParseFailure(uft::ParserContext*, uft::Value const&) const;
65
66 };
67
68 class AxesNodeTest
69 {
70 public:
71 AxesNodeTest(uft::String const&, uft::Value const&);
72
73 void InitVirtualTables();
74 void getSourceDOMExpr(uft::Set const&);
75 void getSourceDOMExpr_impl(uft::Value const&, uft::Set const&);
76 void isAxesDefault();
77 void isValidNode(mdom::Node*, xpath::Context*) const;
78 void query(uft::Value const&, void*);
79 void setAxes(uft::String const&);
80 void setAxesAsChild();
81 void setAxesAsDescendantOrSelf();
82 void staticInit();
83 void toString();
84
85 void* s_descriptor;
86
87 };
88
89 class Context
90 {
91 public:
92 Context(mdom::Node const&, bool, xpath::StaticContext*);
93
94 // ~DynamicContextHelper();
95
96 virtual ~Context();
97 virtual void handleExpressionError(uft::String);
98
99 // void DynamicContextHelper(xpath::Context*, xpath::DynamicContext*);
100 // void DynamicContextHelper(xpath::Context*, xpath::DynamicContext*, mdom::Node const&);
101 void getDynamicContext(xpath::Expression const&, bool);
102 void incrementCurrentPosition(uft::Value const&);
103 void removeDynamicContext(uft::Value const&);
104 void setDynamicContext(uft::Value const&, uft::Value const&, xpath::StepDynamicContext*);
105 void setDynamicContext(uft::Value const&, xpath::DynamicContext*);
106 void setInitialContext(unsigned int, unsigned int);
107 void setReferenceNode(mdom::Node const&);
108
109 };
110
111 class CurlyBracketAttributeParser: public xpath::Parser
112 {
113 public:
114 virtual void parse(uft::ParserContext*, uft::Value const&) const;
115 virtual void getValidStartChars() const;
116 virtual void handlerParseFailure(uft::ParserContext*, uft::Value const&) const;
117
118 };
119
120 class CurlyBracketExpression
121 {
122 public:
123 void staticInit();
124
125 void* s_descriptor;
126
127 };
128
129 class Dependency
130 {
131 public:
132 };
133
134 class DependencyType
135 {
136 public:
137 };
138
139 class DynamicContext
140 {
141 public:
142 DynamicContext(unsigned int, unsigned int);
143 DynamicContext(xpath::Expression const&, bool);
144
145 virtual ~DynamicContext();
146 virtual void getContextSize();
147 virtual void resetContext(mdom::Node const&);
148
149 };
150
151 class ExplicitReference
152 {
153 public:
154 ExplicitReference(mdom::Reference const&);
155
156 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
157 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
158 void isNodeInNodeset_impl(uft::Value const&, xpath::Context*, mdom::Node*);
159 void iterate(xpath::Context*, mdom::Node*);
160 void iterate_impl(uft::Value const&, xpath::Context*, mdom::Node*);
161 void query(uft::Value const&, void*);
162 void staticInit();
163 void toString();
164
165 void* ExplicitReference_vtable;
166 void* s_descriptor;
167
168 };
169
170 class Expression
171 {
172 public:
173 Expression(char const*);
174 Expression(uft::URL const&);
175 Expression(uft::Value const&);
176
177 ~Expression();
178
179 void evaluate_impl(mdom::Node const&, xpath::Context*, xpath::ResultType) const;
180 void finishIteration_impl(xpath::Context*) const;
181 void getAttributeParser();
182 void getCurlyBracketAttributeParser();
183 void getDependencyType_impl(xpath::DependencyType, xpath::Dependency*) const;
184 void getExpressionForIDMatch(uft::String const&, uft::String const&);
185 void getExpressionForNodeTypes(uft::String const&, unsigned int*, unsigned int, bool);
186 void getExpressionType_impl() const;
187 void getParser();
188 void getSourceDOMExpr_impl(uft::Set const&) const;
189 // void gotoPreviousStep(mdom::Node const*, uft::sref<xpath::Step>&);
190 void isNodeInNodeset_impl(xpath::Context*, mdom::Node*) const;
191 void isSimpleMatch(xpath::SimpleMatch*, bool);
192 void iterate_impl(xpath::Context*, mdom::Node*) const;
193 void match(mdom::Node const*, bool);
194 // void matchSingleNode(mdom::Node const*, uft::sref<xpath::Step>&);
195 void toString() const;
196
197 };
198
199 class Function
200 {
201 public:
202 Function(uft::QName const&, uft::Vector const&);
203
204 void evaluate_impl(mdom::Node const&, xpath::Context*, xpath::ResultType);
205 void evaluate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
206 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
207 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
208 void getExpressionType();
209 void getExpressionType_impl(uft::Value const&);
210 void iterate_impl(uft::Value const&, xpath::Context*, mdom::Node*);
211 void iterate_impl(xpath::Context*, mdom::Node*);
212 void query(uft::Value const&, void*);
213 void staticInit();
214 void toString();
215
216 void* XPathFunction_vtable;
217 void* s_descriptor;
218
219 };
220
221 class NodeTest
222 {
223 public:
224 NodeTest(uft::String);
225
226 void isValidNode(mdom::Node*);
227 void staticInit();
228 void toString();
229
230 void* s_descriptor;
231
232 };
233
234 class NodeTypeTest
235 {
236 public:
237 NodeTypeTest(unsigned int*, unsigned int, bool);
238 NodeTypeTest(unsigned int, uft::String);
239
240 void isValidNode(mdom::Node*);
241 void staticInit();
242 void toString();
243
244 void* s_descriptor;
245
246 };
247
248 class Operator
249 {
250 public:
251 Operator(uft::String const&, uft::Value const&, uft::Value const&);
252
253 void andFn(mdom::Node const&, xpath::Context*, xpath::ResultType);
254 void equalFn(mdom::Node const&, xpath::Context*, xpath::ResultType);
255 void evaluate(mdom::Node const&, xpath::Context*, xpath::ResultType);
256 void evaluate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
257 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
258 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
259 void getExpressionType();
260 void getExpressionType_impl(uft::Value const&);
261 void getSourceDOMExpr(uft::Set const&);
262 void getSourceDOMExpr_impl(uft::Value const&, uft::Set const&);
263 void getValues(uft::Value&, uft::Value&, mdom::Node const&, xpath::Context*, xpath::ResultType);
264 void greaterFn(mdom::Node const&, xpath::Context*, xpath::ResultType);
265 void isNodeInNodeset(xpath::Context*, mdom::Node*);
266 void isNodeInNodeset_impl(uft::Value const&, xpath::Context*, mdom::Node*);
267 void isValidBinaryOperation(xpath::Context*);
268 void lessFn(mdom::Node const&, xpath::Context*, xpath::ResultType);
269 void numberCompare(mdom::Node const&, xpath::Context*, xpath::ResultType, int);
270 void orFn(mdom::Node const&, xpath::Context*, xpath::ResultType);
271 void query(uft::Value const&, void*);
272 void staticInit();
273 void stringCompare(mdom::Node const&, xpath::Context*, xpath::ResultType);
274 void toString();
275
276 void* XPathOperator_vtable;
277 void* s_descriptor;
278
279 };
280
281 class ResultType
282 {
283 public:
284 };
285
286 class Root
287 {
288 public:
289 Root();
290
291 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
292 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
293 void isNodeInNodeset_impl(uft::Value const&, xpath::Context*, mdom::Node*);
294 void iterate(xpath::Context*, mdom::Node*);
295 void iterate_impl(uft::Value const&, xpath::Context*, mdom::Node*);
296 void query(uft::Value const&, void*);
297 void staticInit();
298 void toString();
299
300 void* XPathRoot_vtable;
301 void* s_descriptor;
302
303 };
304
305 class Scan
306 {
307 public:
308 Scan(char const*, char const*);
309
310 virtual ~Scan();
311
312 void getDebugErrMsg(xpath::Error) const;
313 void getError() const;
314 void getOptionFlags() const;
315 void isNCNameChar(char);
316 void nextToken(char const**, char const**, char const**);
317 void safeMatch(char const*, char const*, char const**);
318 void safePeekNCNameTo(char const*, char, bool);
319 void setOptionFlags(long);
320 void skipTo(char const*, char);
321 void terminalToToken(char);
322
323 void* sCharTest;
324 void* sType1;
325
326 };
327
328 class SimpleMatch
329 {
330 public:
331 ~SimpleMatch();
332
333 };
334
335 class SimpleUserFunction
336 {
337 public:
338 void staticInit();
339
340 void* s_descriptor;
341
342 };
343
344 class StaticContext
345 {
346 public:
347 virtual void virtfunc8() = 0;
348 virtual void virtfunc12() = 0;
349
350 };
351
352 class Step
353 {
354 public:
355 Step(uft::String const&, uft::Value const&);
356 Step(xpath::Expression&);
357 Step(xpath::Root&);
358
359 void evaluate(mdom::Node const&, xpath::Context*, xpath::ResultType);
360 void evaluate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
361 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
362 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
363 void getDynamicContext(xpath::Context*);
364 void getExpressionType();
365 void getExpressionType_impl(uft::Value const&);
366 void getRootAxesNodeTest();
367 void getRootStep();
368 void getSourceDOMExpr(uft::Set const&);
369 void getSourceDOMExpr_impl(uft::Value const&, uft::Set const&);
370 void isNodeInNodeset(xpath::Context*, mdom::Node*);
371 void isNodeInNodeset_impl(uft::Value const&, xpath::Context*, mdom::Node*);
372 void iterate(xpath::Context*, mdom::Node*);
373 void iterate_impl(uft::Value const&, xpath::Context*, mdom::Node*);
374 void query(uft::Value const&, void*);
375 void removeDynamicContext(xpath::Context*) const;
376 void setPrevStep(xpath::Step&);
377 void staticInit();
378 void toString();
379
380 void* XPathStep_vtable;
381 void* s_descriptor;
382
383 };
384
385 class StepDynamicContext: public xpath::DynamicContext
386 {
387 public:
388 StepDynamicContext(xpath::Context*, uft::Value const&, uft::Value const&);
389
390 virtual ~StepDynamicContext();
391 virtual void getContextSize();
392 virtual void resetContext(mdom::Node const&);
393
394 void getContextPosition();
395 void getNext(mdom::Node&);
396 void getNextForCurrentExpression(mdom::Node&);
397 void getPrevDynamicContextInternal();
398 void isNodeInNodeset(mdom::Node&);
399 void setCurrentNode(mdom::Node const&);
400
401 };
402
403 class Variable
404 {
405 public:
406 Variable(uft::QName const&);
407
408 void evaluate_impl(mdom::Node const&, xpath::Context*, xpath::ResultType);
409 void evaluate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
410 void getDependencyType(xpath::DependencyType, xpath::Dependency*);
411 void getDependencyType_impl(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
412 void getExpressionType();
413 void getExpressionType_impl(uft::Value const&);
414 void iterate_impl(uft::Value const&, xpath::Context*, mdom::Node*);
415 void iterate_impl(xpath::Context*, mdom::Node*);
416 void query(uft::Value const&, void*);
417 void staticInit();
418 void toString();
419
420 void* XPathVariable_vtable;
421 void* s_descriptor;
422
423 };
424
425 class XPathIdMatch
426 {
427 public:
428 XPathIdMatch(uft::Value const&);
429
430 void evaluate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
431 void query(uft::Value const&, void*);
432 void staticInit();
433 void toString();
434
435 void* XPathIdMatch_vtable;
436 void* s_descriptor;
437
438 };
439
440 class XPathVTable
441 {
442 public:
443 };
444
445 class YaccParser
446 {
447 public:
448 YaccParser(char const*, uft::ParserContext*);
449
450 ~YaccParser();
451
452 void createXPathObject();
453 void getObjectPointer(uft::Value*&, bool);
454 void getReturnValueObject();
455 void parse();
456 void performLexicalAnalysis(uft::Value*&);
457 void setReturnValueObject(uft::Value&);
458
459 };
460
461
462 void GetOneArgument(uft::Value const&, mdom::Node const&, xpath::Context*, uft::Value&, xpath::ResultType);
463 void SubstituteFunctionDefaults(xpath::XPathVTable*, unsigned int);
464 void booleanValue(uft::Value const&);
465 void convertNodeValue(mdom::Node const&, xpath::Context*, xpath::ResultType);
466 void convertValue(uft::Value const&, xpath::ResultType);
467 void createExplicitReference(mdom::Node const&);
468 void evalBooleanFunction(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
469 void evalNumberFunction(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
470 void evalStringFunction(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
471 void evaluate_through_iterate_impl(uft::Value const&, mdom::Node const&, xpath::Context*, xpath::ResultType);
472 void extractExpression(uft::Value const&);
473 void extractXPathExpression(uft::Value const&);
474 void getAxisName(xpath::Token);
475 void getCSSAbsoluteExpression(xpath::Expression const&);
476 void getCSSAttributeExpression(xpath::Expression const&, xpath::Expression const&);
477 void getCSSChildExpression(xpath::Expression const&, xpath::Expression const&);
478 void getCSSDescendantExpression(xpath::Expression const&, xpath::Expression const&);
479 void getCSSDirectAdjacentExpression(xpath::Expression const&, xpath::Expression const&);
480 void getCSSEqualsAttributeExpression(uft::QName const&, uft::String const&);
481 void getCSSFirstChildExpression(uft::QName const&);
482 void getCSSIndirectAdjacentExpression(xpath::Expression const&, xpath::Expression const&);
483 void getCSSMatchHypenSeparatedAttributeExpression(uft::QName const&, uft::String const&);
484 void getCSSMatchWholeWordAttributeExpression(uft::QName const&, uft::String const&);
485 void getCSSTypeExpression(uft::QName const&);
486 void getCSSUniversalExpression();
487 void getDependencyTypeFromArguments(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
488 void getDependencyTypeNone(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
489 void getDependencyTypeOutsideSubtree(uft::Value const&, xpath::DependencyType, xpath::Dependency*);
490 void getExpressionTypeImplAttribute(uft::Value const&);
491 void getExpressionTypeImplBoolean(uft::Value const&);
492 void getExpressionTypeImplNamespace(uft::Value const&);
493 void getExpressionTypeImplNodeset(uft::Value const&);
494 void getExpressionTypeImplNumber(uft::Value const&);
495 void getExpressionTypeImplString(uft::Value const&);
496 void getFunctionVTable(uft::QName const&);
497 void getSourceDOMExprSelf(uft::Value const&, uft::Set const&);
498 void getSourceDOMNULL(uft::Value const&, uft::Set const&);
499 void isNodeInNodesetTrue(uft::Value const&, xpath::Context*, mdom::Node*);
500 void numericalValue(uft::Value const&);
501 uft::String stringValue(mdom::Node const&, xpath::Context*);
502
503}
504
505
506
507#endif // _XPATH_H

Archive Download this file

Branches