ddc
xpath_static.h
Go to the documentation of this file.
1 /*
2 www.sourceforge.net/projects/tinyxpath
3 Copyright (c) 2002-2004 Yves Berquin (yvesb@users.sourceforge.net)
4 
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any
7 damages arising from the use of this software.
8 
9 Permission is granted to anyone to use this software for any
10 purpose, including commercial applications, and to alter it and
11 redistribute it freely, subject to the following restrictions:
12 
13 1. The origin of this software must not be misrepresented; you must
14 not claim that you wrote the original software. If you use this
15 software in a product, an acknowledgment in the product documentation
16 would be appreciated but is not required.
17 
18 2. Altered source versions must be plainly marked as such, and
19 must not be misrepresented as being the original software.
20 
21 3. This notice may not be removed or altered from any source
22 distribution.
23 */
24 
30 #ifndef __XPATH_STATIC_H
31 #define __XPATH_STATIC_H
32 
33 #include "xpath_processor.h"
34 
35 namespace TinyXPath
36 {
37  // no check static functions
38  extern int i_xpath_int (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
39  extern double d_xpath_double (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
40  extern bool o_xpath_bool (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
41  extern TIXML_STRING S_xpath_string (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
42  extern TiXmlNode * XNp_xpath_node (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
43  extern TiXmlAttribute * XAp_xpath_attribute (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr);
44 
45  // check static functions
46  extern bool o_xpath_int (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, int & i_res);
47  extern bool o_xpath_double (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, double & d_res);
48  extern bool o_xpath_bool (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, bool & o_res);
49  extern bool o_xpath_string (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, TIXML_STRING & S_res);
50  extern bool o_xpath_node (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, const TiXmlNode * & XNp_node);
51  extern bool o_xpath_attribute (const TiXmlNode * XNp_source_tree, const char * cp_xpath_expr, const TiXmlAttribute * & XAp_attrib);
52 }
53 
54 #endif
55 
56 /*--- emacs style variables ---
57  * Local Variables:
58  * mode: C++
59  * c-file-style: "ellemtel"
60  * c-basic-offset: 4
61  * tab-width: 8
62  * indent-tabs-mode: nil
63  * End:
64  */
bool o_xpath_string(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr, TiXmlString &S_res)
Static function to compute a string XPath expression, without an error check.
Definition: xpath_static.cpp:111
Definition: tinyxml.h:640
TiXmlAttribute * XAp_xpath_attribute(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute an attribute XPath expression, without an error check. ...
Definition: xpath_static.cpp:75
int i_xpath_int(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute an integer XPath expression, without an error check.
Definition: xpath_static.cpp:35
TiXmlNode * XNp_xpath_node(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute a node XPath expression, without an error check.
Definition: xpath_static.cpp:63
double d_xpath_double(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute a double XPath expression, without an error check.
Definition: xpath_static.cpp:42
Definition: action_store.cpp:32
bool o_xpath_bool(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute a bool XPath expression, without an error check.
Definition: xpath_static.cpp:49
bool o_xpath_int(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr, int &i_res)
Static function to compute an integer XPath expression, with an error check.
Definition: xpath_static.cpp:87
bool o_xpath_node(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr, const TiXmlNode *&XNp_node)
Static function to compute a node XPath expression, without an error check.
Definition: xpath_static.cpp:119
TiXmlString S_xpath_string(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr)
Static function to compute a string XPath expression, without an error check.
Definition: xpath_static.cpp:56
Definition: tinyxml.h:363
bool o_xpath_attribute(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr, const TiXmlAttribute *&XAp_attrib)
Static function to compute an attribute XPath expression, without an error check. ...
Definition: xpath_static.cpp:132
bool o_xpath_double(const TiXmlNode *XNp_source_tree, const char *cp_xpath_expr, double &d_res)
Static function to compute a double XPath expression, without an error check.
Definition: xpath_static.cpp:95
#define TIXML_STRING
Definition: tinyxml.h:67