mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-29 22:23:27 +01:00
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
#ifndef ARABICA_XPATH_COMPILE_CONTEXT_HPP
|
|
#define ARABICA_XPATH_COMPILE_CONTEXT_HPP
|
|
|
|
namespace Arabica
|
|
{
|
|
namespace XPath
|
|
{
|
|
|
|
template<class string_type, class string_adaptor> class XPath;
|
|
template<class string_type, class string_adaptor> class NamespaceContext;
|
|
template<class string_type, class string_adaptor> class FunctionResolver;
|
|
|
|
namespace impl
|
|
{
|
|
|
|
template<class string_type, class string_adaptor>
|
|
class CompilationContext
|
|
{
|
|
public:
|
|
CompilationContext(const XPath<string_type, string_adaptor>& xpathCompiler,
|
|
const NamespaceContext<string_type, string_adaptor>& namespaceContext,
|
|
const FunctionResolver<string_type, string_adaptor>& functionResolver) :
|
|
xpath_(xpathCompiler),
|
|
namespaceContext_(namespaceContext),
|
|
functionResolver_(functionResolver)
|
|
{
|
|
} // CompilationContext
|
|
|
|
const XPath<string_type, string_adaptor>& xpath() const { return xpath_; }
|
|
const NamespaceContext<string_type, string_adaptor>& namespaceContext() const { return namespaceContext_; }
|
|
const FunctionResolver<string_type, string_adaptor>& functionResolver() const { return functionResolver_; }
|
|
|
|
private:
|
|
const XPath<string_type, string_adaptor>& xpath_;
|
|
const NamespaceContext<string_type, string_adaptor>& namespaceContext_;
|
|
const FunctionResolver<string_type, string_adaptor>& functionResolver_;
|
|
|
|
CompilationContext(const CompilationContext&);
|
|
CompilationContext& operator=(const CompilationContext&);
|
|
bool operator==(const CompilationContext&) const;
|
|
}; // class CompilationContext
|
|
|
|
} // namespace impl
|
|
} // namespace XPath
|
|
} // namespace Arabica
|
|
|
|
#endif
|