| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
#ifndef __XPATH_STACK_H |
| 31 |
#define __XPATH_STACK_H |
| 32 |
|
| 33 |
#include "tinyxpath_conf.h" |
| 34 |
#include "xpath_expression.h" |
| 35 |
#include "xpath_stream.h" |
| 36 |
|
| 37 |
namespace TinyXPath |
| 38 |
{ |
| 39 |
|
| 40 |
class result_and_next; |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
class xpath_stack |
| 45 |
{ |
| 46 |
public : |
| 47 |
xpath_stack (); |
| 48 |
~ xpath_stack (); |
| 49 |
void v_push (expression_result er_res); |
| 50 |
void v_push_int (int i_elem, const char * cp_comment = NULL); |
| 51 |
void v_push_bool (bool o_in); |
| 52 |
void v_push_string (TIXML_STRING S_in); |
| 53 |
void v_push_double (double d_elem); |
| 54 |
void v_push_node_set (node_set * nsp_ptr); |
| 55 |
|
| 56 |
expression_result * erp_top (); |
| 57 |
int i_top_int (); |
| 58 |
|
| 59 |
void v_pop (unsigned u_nb = 1); |
| 60 |
int i_pop_int (); |
| 61 |
TIXML_STRING S_pop_string (); |
| 62 |
bool o_pop_bool (); |
| 63 |
node_set ns_pop_node_set (); |
| 64 |
|
| 65 |
unsigned u_get_size () {return u_size;} |
| 66 |
expression_result * erp_previous (unsigned u_nb); |
| 67 |
#ifdef TINYXPATH_DEBUG |
| 68 |
void v_dump (); |
| 69 |
#endif |
| 70 |
protected : |
| 71 |
|
| 72 |
result_and_next * rnp_first; |
| 73 |
|
| 74 |
unsigned u_size; |
| 75 |
void v_pop_one (); |
| 76 |
} ; |
| 77 |
|
| 78 |
} |
| 79 |
|
| 80 |
#endif |