13 #include "SaxonProcessor.h"
94 void setProperty(
const char * name,
const char * value);
127 void executeQueryToFile(
const char * infilename,
const char * ofilename,
const char * query);
223 void setcwd(
const char* cwd);
268 void createException(
const char * message=
nullptr);
274 std::map<std::string,XdmValue*> parameters;
275 std::map<std::string,std::string> properties;
Definition: SaxonApiException.h:19
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition: SaxonProcessor.h:119
Definition: XQueryProcessor.h:26
void setOutputFile(const char *outfile)
Definition: XQueryProcessor.cpp:153
void setcwd(const char *cwd)
Definition: XQueryProcessor.cpp:222
void setQueryBaseURI(const char *baseURI)
Set the static base URI for the query.
Definition: XQueryProcessor.cpp:226
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: XQueryProcessor.cpp:200
void setQueryFile(const char *filename)
Compile a query supplied as a file name.
Definition: XQueryProcessor.cpp:509
const char * checkException()
Check for exception thrown.
Definition: XQueryProcessor.cpp:550
bool exceptionOccurred()
Definition: XQueryProcessor.cpp:535
void setParameter(const char *name, XdmValue *value)
Definition: XQueryProcessor.cpp:161
void runQueryToFile()
Execute the Query cached to file.
Definition: XQueryProcessor.cpp:505
const char * getErrorCode()
Get the i'th error code if there are any error.
Definition: XQueryProcessor.cpp:540
void executeQueryToFile(const char *infilename, const char *ofilename, const char *query)
Perform the Query to file.
Definition: XQueryProcessor.cpp:248
void declareNamespace(const char *prefix, const char *uri)
Declare a namespace binding.
Definition: XQueryProcessor.cpp:121
void setContextItem(XdmItem *value)
Set the initial context item for the query.
Definition: XQueryProcessor.cpp:113
XdmValue * runQueryToValue()
Execute the Query cached.
Definition: XQueryProcessor.cpp:501
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition: XQueryProcessor.cpp:104
void clearProperties()
Clear property values set.
Definition: XQueryProcessor.cpp:216
void exceptionClear()
Clear any exception thrown.
Definition: XQueryProcessor.cpp:521
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition: XQueryProcessor.cpp:186
void setUpdating(bool updating)
Say whether the query is allowed to be updating.
Definition: XQueryProcessor.cpp:231
const char * runQueryToString()
Definition: XQueryProcessor.cpp:495
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: XQueryProcessor.cpp:99
XdmValue * executeQueryToValue(const char *infilename, const char *query)
Perform the Query to a XdmValue representation.
Definition: XQueryProcessor.cpp:312
void setContextItemFromFile(const char *filename)
Definition: XQueryProcessor.cpp:146
void setQueryContent(const char *content)
Compile a query supplied as a string.
Definition: XQueryProcessor.cpp:514
bool removeParameter(const char *name)
Remove a parameter (name, value) pair.
Definition: XQueryProcessor.cpp:180
const char * getErrorMessage()
Get the ith error message if there are any error.
Definition: XQueryProcessor.cpp:545
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition: XQueryProcessor.cpp:560
XQueryProcessor()
Default constructor.
Definition: XQueryProcessor.cpp:15
XQueryProcessor * clone()
Definition: XQueryProcessor.cpp:91
const char * executeQueryToString(const char *infilename, const char *query)
Perform the Query to a string representation.
Definition: XQueryProcessor.cpp:415
Definition: XdmValue.h:50