1
2
3
4
5
6 #ifndef SNGXML_XPATH_XPATH_CONTEXT
7 #define SNGXML_XPATH_XPATH_CONTEXT
8 #include <sngxml/xpath/XPathApi.hpp>
9 #include <sngxml/dom/Node.hpp>
10
11 namespace sngxml { namespace xpath {
12
13 class XPathContext
14 {
15 public:
16 XPathContext(sngxml::dom::Node* node_, int position_, int size_);
17 sngxml::dom::Node* Node() const { return node; }
18 int Position() const { return position; }
19 int Size() const { return size; }
20 private:
21 sngxml::dom::Node* node;
22 int position;
23 int size;
24 };
25
26 } }
27
28 #endif // SNGXML_XPATH_XPATH_CONTEXT