Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TinyXPath::byte_stream Class Reference

A Byte stream class, very crude. More...

#include <byte_stream.h>

Inheritance diagram for TinyXPath::byte_stream:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 byte_stream (const char *cp_in)
 constructor

 ~byte_stream ()
 destructor

_byte_ b_top ()
 Returns the byte on top.

_byte_ b_pop ()
 Consumes one byte.

bool o_is_valid ()
 true if there are still some byte to consume

unsigned u_remain ()
 number of bytes still to consume

_byte_ b_forward (unsigned u_nb_char)
 peek a byte a little further down the stream

const _byte_bp_get_backward (unsigned u_amount)
 get a byte backward pointer to the stream


Private Attributes

unsigned u_length
 Length of the total string, + 1.

_byte_bp_in
 Total string.

_byte_bp_current
 Current read position.

_byte_bp_end
 First invalid position.

bool o_valid
 true when there are still some byte to read


Detailed Description

A Byte stream class, very crude.

The only purpose of this class is to walk in a byte stream, available at construction time.


Constructor & Destructor Documentation

TinyXPath::byte_stream::byte_stream const char *  cp_in  )  [inline]
 

constructor

TinyXPath::byte_stream::~byte_stream  )  [inline]
 

destructor


Member Function Documentation

_byte_ TinyXPath::byte_stream::b_forward unsigned  u_nb_char  )  [inline]
 

peek a byte a little further down the stream

_byte_ TinyXPath::byte_stream::b_pop  )  [inline]
 

Consumes one byte.

_byte_ TinyXPath::byte_stream::b_top  )  [inline]
 

Returns the byte on top.

const _byte_* TinyXPath::byte_stream::bp_get_backward unsigned  u_amount  )  [inline]
 

get a byte backward pointer to the stream

bool TinyXPath::byte_stream::o_is_valid  )  [inline]
 

true if there are still some byte to consume

unsigned TinyXPath::byte_stream::u_remain  )  [inline]
 

number of bytes still to consume


Member Data Documentation

_byte_* TinyXPath::byte_stream::bp_current [private]
 

Current read position.

_byte_* TinyXPath::byte_stream::bp_end [private]
 

First invalid position.

_byte_* TinyXPath::byte_stream::bp_in [private]
 

Total string.

bool TinyXPath::byte_stream::o_valid [private]
 

true when there are still some byte to read

unsigned TinyXPath::byte_stream::u_length [private]
 

Length of the total string, + 1.


The documentation for this class was generated from the following file:
Generated for TinyXPath by doxygen SourceForge Logo