#ifndef JEZUK_DOM_TRAVERSAL_DOCUMENT_TRAVERSAL_IMPL_H #define JEZUK_DOM_TRAVERSAL_DOCUMENT_TRAVERSAL_IMPL_H ///////////////////////////////////////// // C++ DOM Traversal Implementation // // $Id: TreeWalker.h 2 2002-06-21 11:16:28Z jez_higgins $ ///////////////////////////////////////// #include namespace DOM { namespace Traversal { template class DocumentTraversalImpl : public DocumentTraversal_impl { public: DocumentTraversalImpl() {} virtual NodeIterator_impl* createNodeIterator(DOM::Node root, unsigned long whatToShow, NodeFilter* filter, bool entityRefExpansion) { return 0; } virtual TreeWalker_impl* createTreeWalker(DOM::Node root, unsigned long whatToShow, NodeFilter* filter, bool entityRefExpansion) { return new TreeWalkerImpl(root, whatToShow, filter, entityRefExpansion); } }; // class DocumentTraversalImpl //todo: move to DOM::Document? template DocumentTraversal make_document_traversal_t() { DocumentTraversal docTraversal(new DocumentTraversalImpl()); return docTraversal; } } // namespace Traversal } // namespace DOM #endif //JEZUK_DOM_TRAVERSAL_DOCUMENT_TRAVERSAL_IMPL_H // end of file