arabica/XPath/impl/xpath_compile_context.hpp
2005-08-04 20:42:30 +00:00

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