#include <xpath_stream.h>
A specialized version of byte_stream for XPath
TinyXPath::xpath_stream::xpath_stream | ( | const char * | cp_in | ) |
virtual TinyXPath::xpath_stream::~xpath_stream | ( | ) | [inline, virtual] |
destructor
References tlp_list.
void TinyXPath::xpath_stream::v_lexico_decode | ( | ) | [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(), TinyXPath::lex_under, and tlp_list.
Referenced by v_evaluate().
void TinyXPath::xpath_stream::v_evaluate | ( | ) | [inline] |
Evaluate a XPath expression
Decodes the lexical and syntax contents.
References tlp_list, and v_lexico_decode().
Referenced by TinyXPath::xpath_processor::er_compute_xpath().
virtual void TinyXPath::xpath_stream::v_action | ( | xpath_construct | , | |
unsigned | , | |||
unsigned | , | |||
const char * | ||||
) | [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.
virtual int TinyXPath::xpath_stream::i_get_action_counter | ( | ) | [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.
token_syntax_decoder* TinyXPath::xpath_stream::tlp_list [protected] |
List of tokens.
Referenced by v_evaluate(), v_lexico_decode(), xpath_stream(), and ~xpath_stream().