Saxon/C  0.3.1
Saxon Processor library for C/C++
 All Classes Functions Variables
php_saxon.h
1 // Copyright (c) 2014 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
7 
8 #ifndef PHP_SAXON_H
9 #define PHP_SAXON_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15  #include "php.h"
16  //#include "php_ini.h"
17  #include "ext/standard/info.h"
18  #include "Zend/zend_exceptions.h"
19 
20 
21 
22 #ifdef PHP_WIN32
23  #define _ALLOW_KEYWORD_MACROS
24 #endif
25 
26 #ifdef PHP_WIN32
27  #define PHP_SAXON_API __declspec(dllexport)
28  #define PHP_SAXON __declspec(dllimport)
29 //#elif define(__GNUC__) && __GNUC__ >= 4
30 //#define PHP_SAXON __attribute__ ((visibility("default")))
31 //#else
32 //#define PHP_SAXON_API
33 #endif
34 
35 #ifdef ZTS
36 #include "TSRM.h"
37 #endif
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 /*class SaxonProcessor;
43 class XQueryProcessor;
44 class XsltProcessor;
45 class XdmValue;*/
46 
47 extern zend_module_entry saxon_module_entry;
48 #define phpext_saxon_ptr &saxon_module_entry;
49 
51  zend_object std;
52  SaxonProcessor * saxonProcessor;
53  XsltProcessor *xsltProcessor;
54  XQueryProcessor *xqueryProcessor;
55  XdmValue * xdmValue;
56  char * sfilename;
57  char * stylesheetFile;
58  char * stylesheetStr;
59  char * queryFile;
60  char * queryStr;
61 };
62 
63 
65  zend_object std;
66  XdmValue * xdmValue;
67 };
68 
69 #define PHP_SAXON_EXTNAME "Saxon/C"
70 #define PHP_SAXON_EXTVER "0.3.1"
71 
72  PHP_MSHUTDOWN_FUNCTION(saxon);
73  PHP_MINFO_FUNCTION(saxon);
74  PHP_MINIT_FUNCTION(saxon);
75  PHP_METHOD(SaxonProcessor, __construct);
76  PHP_METHOD(SaxonProcessor, __destruct);
77  PHP_METHOD(SaxonProcessor, createXdmValue);
78  PHP_METHOD(SaxonProcessor, setSourceValue);
79  PHP_METHOD(SaxonProcessor, setSourceFile);
80  PHP_METHOD(SaxonProcessor, parseString);
81  PHP_METHOD(SaxonProcessor, parseFile);
82  PHP_METHOD(SaxonProcessor, setParameter);
83  PHP_METHOD(SaxonProcessor, setProperty);
84  PHP_METHOD(SaxonProcessor, getParameter);
85  PHP_METHOD(SaxonProcessor, getProperty);
86  PHP_METHOD(SaxonProcessor, clearParameters);
87  PHP_METHOD(SaxonProcessor, clearProperties);
88 // PHP_METHOD(SaxonProcessor, importDocument);
89  PHP_METHOD(SaxonProcessor, setStylesheetContent);
90  PHP_METHOD(SaxonProcessor, setStylesheetFile);
91  PHP_METHOD(SaxonProcessor, setQueryContent);
92  PHP_METHOD(SaxonProcessor, setQueryFile);
93 // PHP_METHOD(SaxonProcessor, registerPHPFunction);
94 // PHP_METHOD(SaxonProcessor, transformToDoc);
95  PHP_METHOD(SaxonProcessor, transformToFile);
96  PHP_METHOD(SaxonProcessor, transformToString);
97  PHP_METHOD(SaxonProcessor, transformToValue);
98  PHP_METHOD(SaxonProcessor, queryToFile);
99  PHP_METHOD(SaxonProcessor, queryToValue);
100  PHP_METHOD(SaxonProcessor, queryToString);
101  PHP_METHOD(SaxonProcessor, exceptionClear);
102  PHP_METHOD(SaxonProcessor, getErrorCode);
103  PHP_METHOD(SaxonProcessor, getErrorMessage);
104  PHP_METHOD(SaxonProcessor, getExceptionCount);
105  PHP_METHOD(SaxonProcessor, version);
106 
107 
108  PHP_METHOD(XdmValue, __construct);
109  PHP_METHOD(XdmValue, getErrorCode);
110  PHP_METHOD(XdmValue, getStringValue);
111 
112 #endif /* PHP_SAXON_H */
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
Definition: XQueryProcessor.h:22
Definition: php_saxon.h:50
Definition: XdmValue.h:24
Definition: XsltProcessor.h:20
Definition: SaxonProcessor.h:273
Definition: php_saxon.h:64