13#include "SaxonProcessor.h"
127 void setProperty(
const char *name,
const char *value);
165 const char *query,
const char *encoding =
nullptr);
177 const char *encoding =
nullptr);
189 const char *encoding =
nullptr);
272 void setcwd(
const char *cwd);
316 void createException(
const char *message =
nullptr);
322 std::map<std::string, XdmValue *>
325 std::map<std::string, std::string>
Definition SaxonApiException.h:23
Definition SaxonProcessor.h:117
Definition XQueryProcessor.h:24
void setOutputFile(const char *outfile)
Definition XQueryProcessor.cpp:139
void setcwd(const char *cwd)
Definition XQueryProcessor.cpp:206
void executeQueryToFile(const char *infilename, const char *ofilename, const char *query, const char *encoding=nullptr)
Perform the Query to file.
Definition XQueryProcessor.cpp:225
void setQueryBaseURI(const char *baseURI)
Set the static base URI for the query.
Definition XQueryProcessor.cpp:212
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition XQueryProcessor.cpp:183
void setQueryFile(const char *filename)
Compile a query supplied as a file name.
Definition XQueryProcessor.cpp:323
const char * checkException()
Check for exception thrown.
Definition XQueryProcessor.cpp:374
void setStreaming(bool option)
Say whether the query should be compiled and evaluated to use streaming.
Definition XQueryProcessor.cpp:328
bool exceptionOccurred()
Definition XQueryProcessor.cpp:356
void setParameter(const char *name, XdmValue *value)
Definition XQueryProcessor.cpp:146
void runQueryToFile()
Execute the Query cached to file.
Definition XQueryProcessor.cpp:319
const char * getErrorCode()
Get the first error code if there are any errors.
Definition XQueryProcessor.cpp:360
void declareNamespace(const char *prefix, const char *uri)
Declare a namespace binding.
Definition XQueryProcessor.cpp:108
void setContextItem(XdmItem *value)
Set the initial context item for the query.
Definition XQueryProcessor.cpp:101
const char * executeQueryToString(const char *infilename, const char *query, const char *encoding=nullptr)
Perform the Query to a string representation.
Definition XQueryProcessor.cpp:283
XdmValue * runQueryToValue()
Execute the Query cached.
Definition XQueryProcessor.cpp:315
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition XQueryProcessor.cpp:93
void clearProperties()
Clear property values set.
Definition XQueryProcessor.cpp:201
void exceptionClear()
Clear any exception thrown.
Definition XQueryProcessor.cpp:348
void setLanguageVersion(const char *version)
Set XQuery language version.
Definition XQueryProcessor.cpp:339
XdmValue * executeQueryToValue(const char *infilename, const char *query, const char *encoding=nullptr)
Perform the Query to a XdmValue representation.
Definition XQueryProcessor.cpp:253
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition XQueryProcessor.cpp:170
void setUpdating(bool updating)
Say whether the query is allowed to be updating.
Definition XQueryProcessor.cpp:216
const char * runQueryToString()
Definition XQueryProcessor.cpp:311
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition XQueryProcessor.cpp:88
void setContextItemFromFile(const char *filename)
Definition XQueryProcessor.cpp:132
void setQueryContent(const char *content)
Compile a query supplied as a string.
Definition XQueryProcessor.cpp:343
bool isStreaming()
Ask whether the streaming option has been set.
Definition XQueryProcessor.cpp:337
bool removeParameter(const char *name)
Remove a parameter (name, value) pair.
Definition XQueryProcessor.cpp:164
const char * getErrorMessage()
Get the first error message if there are any errors.
Definition XQueryProcessor.cpp:367
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition XQueryProcessor.cpp:383
XQueryProcessor()
Default constructor.
Definition XQueryProcessor.cpp:14
XQueryProcessor * clone()
Definition XQueryProcessor.cpp:83