mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-04 23:01:54 +01:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef ARABICA_XPATH_COMPILE_CONTEXT_HPP
|
|
#define ARABICA_XPATH_COMPILE_CONTEXT_HPP
|
|
|
|
namespace Arabica
|
|
{
|
|
namespace XPath
|
|
{
|
|
|
|
class XPath;
|
|
class NamespaceContext;
|
|
class FunctionResolver;
|
|
|
|
class CompilationContext
|
|
{
|
|
public:
|
|
CompilationContext(const XPath& xpathCompiler,
|
|
const NamespaceContext& namespaceContext,
|
|
const FunctionResolver& functionResolver) :
|
|
xpath_(xpathCompiler),
|
|
namespaceContext_(namespaceContext),
|
|
functionResolver_(functionResolver)
|
|
{
|
|
} // CompilationContext
|
|
|
|
const XPath& xpath() const { return xpath_; }
|
|
const NamespaceContext& namespaceContext() const { return namespaceContext_; }
|
|
const FunctionResolver& functionResolver() const { return functionResolver_; }
|
|
|
|
private:
|
|
const XPath& xpath_;
|
|
const NamespaceContext& namespaceContext_;
|
|
const FunctionResolver& functionResolver_;
|
|
|
|
CompilationContext(const CompilationContext&);
|
|
CompilationContext& operator=(const CompilationContext&);
|
|
bool operator==(const CompilationContext&) const;
|
|
}; // class CompilationContext
|
|
|
|
} // namespace XPath
|
|
} // namespace Arabica
|
|
|
|
#endif
|