ddc
Public Member Functions | Protected Attributes | List of all members
TinyXPath::xpath_stream Class Referenceabstract

#include <xpath_stream.h>

Inheritance diagram for TinyXPath::xpath_stream:
Inheritance graph
[legend]
Collaboration diagram for TinyXPath::xpath_stream:
Collaboration graph
[legend]

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_decodertlp_list
 List of tokens. More...
 

Detailed Description

A specialized version of byte_stream for XPath

Constructor & Destructor Documentation

◆ xpath_stream()

TinyXPath::xpath_stream::xpath_stream ( const char *  cp_in)

constructor

xpath_stream constructor

References tlp_list.

◆ ~ xpath_stream()

virtual TinyXPath::xpath_stream::~ xpath_stream ( )
inlinevirtual

destructor

References tlp_list.

Member Function Documentation

◆ v_lexico_decode()

void TinyXPath::xpath_stream::v_lexico_decode ( )
inline

◆ v_evaluate()

void TinyXPath::xpath_stream::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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ v_action()

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.

Referenced by v_evaluate().

Here is the caller graph for this function:

◆ i_get_action_counter()

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.

Referenced by v_evaluate().

Here is the caller graph for this function:

Member Data Documentation

◆ tlp_list

token_syntax_decoder* TinyXPath::xpath_stream::tlp_list
protected

List of tokens.

Referenced by xpath_stream(), and ~ xpath_stream().


The documentation for this class was generated from the following files: