Main Page   Class Hierarchy   Compound List   File List   Compound Members  

xpath_context.h

00001 
00002 //  -*- c++ -*-
00003 
00004 #ifndef XPATH_CONTEXT_H
00005 #define XPATH_CONTEXT_H
00006 
00007 #include <dom/dom_node.h>
00008 
00009 namespace XPath {
00010 
00018 class Context
00019 {
00020 public:
00021     Context( const DOM::Node &node ) : curr(node) {}
00022 
00024     DOM::Node current() const { return curr; }
00025 
00027     ulong position() const { return curr.index(); }
00028 
00030     ulong size() const;
00031 
00033     void *variables;
00035     void *functions;
00037     void *namespaces;
00038 
00039 private:
00040     DOM::Node curr;
00041 };
00042 
00043 }; // namespace XPath
00044 
00045 #endif // XPATH_CONTEXT_H
00046 
00047 // Local Variables:
00048 // c-basic-offset: 4
00049 // End:

Generated at Sat Feb 15 02:18:35 2003 for 'KHTML::XPath' by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001