#include <XQilla.hpp>
Inheritance diagram for XQilla:
Public Types | |
enum | Flags { NO_STATIC_RESOLUTION = 0x1, NO_ADOPT_CONTEXT = 0x2, DEBUG_QUERY = 0x4, NO_OPTIMIZATION = 0x8 } |
Flags used by the XQilla methods. These are used by bitwise OR-ing (|) their values together. More... | |
enum | Language { XQUERY = 0x00, XPATH2 = 0x01, FULLTEXT = 0x02, UPDATE = 0x04, EXTENSIONS = 0x08, XSLT2 = 0x10, XQUERY_FULLTEXT = (XQUERY | FULLTEXT), XPATH2_FULLTEXT = (XPATH2 | FULLTEXT), XQUERY_UPDATE = (XQUERY | UPDATE), XQUERY_FULLTEXT_UPDATE = (XQUERY | FULLTEXT | UPDATE), XSLT2_FULLTEXT = (XSLT2 | FULLTEXT) } |
Enumeration used to select a language to parse. More... | |
Public Member Functions | |
XQilla (xercesc::MemoryManager *memMgr=0) | |
Constructs the object. | |
~XQilla () | |
Destructs the object. | |
Static Public Member Functions | |
Parsing Methods | |
XQQuery * | parse (const XMLCh *query, DynamicContext *context=0, const XMLCh *queryFile=NULL, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager) |
Parse the expression contained in the given query string. | |
XQQuery * | parse (const xercesc::InputSource &querySrc, DynamicContext *context=0, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager) |
Parse the expression from the given InputSource. | |
XQQuery * | parseFromURI (const XMLCh *queryFile, DynamicContext *context=0, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager) |
Parse the expression residing at the given URL. | |
Factory Methods | |
DynamicContext * | createContext (Language language=XQUERY, XQillaConfiguration *conf=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager) |
Creates a context suitable for parsing an expression with. |
This class calls XQillaPlatformUtils::initialize() when it is constructed, and XQillaPlatformUtils::terminate() when it destructs, so there is no need to seperately initialize or terminate either Xerces or XQilla.
|
Flags used by the XQilla methods. These are used by bitwise OR-ing (|) their values together.
|
|
Enumeration used to select a language to parse.
|
|
Constructs the object. In the process, XQillaPlatformUtils::initialize() is called to initialize XQilla and Xerces.
|
|
Destructs the object. In the process, XQillaPlatformUtils::terminate() is called to terminate XQilla and Xerces. |
|
Creates a context suitable for parsing an expression with.
|
|
Parse the expression from the given InputSource.
|
|
Parse the expression contained in the given query string.
|
|
Parse the expression residing at the given URL.
|