ddc
|
#include <xpath_stream.h>
Public Member Functions | |
xpath_stream (const char *cp_in) | |
constructor More... | |
virtual | ~ xpath_stream () |
destructor More... | |
void | v_lexico_decode () |
Decode the byte stream, and construct the lexical list. More... | |
void | v_evaluate () |
virtual void | v_action (xpath_construct, unsigned, unsigned, const char *)=0 |
Callback used by token_syntax_decoder::v_syntax_decode to notify of an action to be made. Pure virtual. More... | |
virtual int | i_get_action_counter ()=0 |
Public Member Functions inherited from TinyXPath::byte_stream | |
byte_stream (const char *cp_in) | |
constructor More... | |
~ byte_stream () | |
destructor More... | |
_byte_ | b_top () |
Returns the byte on top. More... | |
_byte_ | b_pop () |
Consumes one byte. More... | |
bool | o_is_valid () |
true if there are still some byte to consume More... | |
unsigned | u_remain () |
number of bytes still to consume More... | |
_byte_ | b_forward (unsigned u_nb_char) |
peek a byte a little further down the stream More... | |
const _byte_ * | bp_get_backward (unsigned u_amount) |
get a byte backward pointer to the stream More... | |
Protected Attributes | |
token_syntax_decoder * | tlp_list |
List of tokens. More... | |
A specialized version of byte_stream for XPath
TinyXPath::xpath_stream::xpath_stream | ( | const char * | cp_in | ) |
|
inlinevirtual |
destructor
References tlp_list.
|
inline |
Decode the byte stream, and construct the lexical list.
References TinyXPath::byte_stream::b_forward(), TinyXPath::byte_stream::b_pop(), TinyXPath::byte_stream::b_top(), TinyXPath::byte_stream::bp_get_backward(), TinyXPath::lex_1_quote, TinyXPath::lex_2_quote, TinyXPath::lex_bchar, TinyXPath::lex_digit, TinyXPath::lex_dot, TinyXPath::lex_extend, TinyXPath::lex_get_class(), TinyXPath::lex_literal, TinyXPath::lex_minus, TinyXPath::lex_null, TinyXPath::lex_number, TinyXPath::lex_test_id(), and TinyXPath::lex_under.
Referenced by v_evaluate().
|
inline |
Evaluate a XPath expression
Decodes the lexical and syntax contents.
References i_get_action_counter(), v_action(), and v_lexico_decode().
Referenced by TinyXPath::xpath_processor::er_compute_xpath().
|
pure virtual |
Callback used by token_syntax_decoder::v_syntax_decode to notify of an action to be made. Pure virtual.
Implemented in TinyXPath::xpath_processor.
Referenced by v_evaluate().
|
pure virtual |
Callback used by token_syntax_decoder::v_syntax_decode to know the action counter position. Pure virtual
This can be any kind of nomenclature, provided that the redefinition is coherent
Implemented in TinyXPath::xpath_processor.
Referenced by v_evaluate().
|
protected |
List of tokens.
Referenced by xpath_stream(), and ~ xpath_stream().