summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:38:43 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:38:43 +0000
commit23d84cdf7c9a7d91d46bd98aed070148cb697b77 (patch)
tree1cb76517805df66a10ae9e72ca2fae7ed41f9087 /src/pugixml.hpp
parentf481f038d64a3d0a1db1a3ae9a13be6a4bb18a7d (diff)
XPath: Implemented variable support in queries
git-svn-id: http://pugixml.googlecode.com/svn/trunk@680 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 7e09551..20e8716 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -325,6 +325,7 @@ namespace pugi
class xpath_node;
class xpath_node_set;
class xpath_query;
+ class xpath_variable_set;
#endif
/**
@@ -1192,7 +1193,7 @@ namespace pugi
* \param query - query string
* \return first node from the resulting node set by document order, or empty node if none found
*/
- xpath_node select_single_node(const char_t* query) const;
+ xpath_node select_single_node(const char_t* query, xpath_variable_set* variables = 0) const;
/**
* Select single node by evaluating XPath query
@@ -1208,7 +1209,7 @@ namespace pugi
* \param query - query string
* \return resulting node set
*/
- xpath_node_set select_nodes(const char_t* query) const;
+ xpath_node_set select_nodes(const char_t* query, xpath_variable_set* variables = 0) const;
/**
* Select node set by evaluating XPath query
@@ -1889,7 +1890,7 @@ namespace pugi
*
* \param query - string with XPath expression
*/
- explicit xpath_query(const char_t* query);
+ explicit xpath_query(const char_t* query, xpath_variable_set* variables = 0);
/**
* Destructor