Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

policy_relaxed_stream Class Reference

#include <xml_stream_policy.h>

Inheritance diagram for policy_relaxed_stream:

Inheritance graph
[legend]
Collaboration diagram for policy_relaxed_stream:

Collaboration graph
[legend]
List of all members.

Detailed Description

CTTL policy class for CTTL XML stream parser sample.

This policy class keeps track of the state of xml input file at run time. policy_relaxed_stream skips white space characters, such as ht, lf, vt, ff, cr, and space.

Definition at line 166 of file xml_stream_policy.h.

Public Member Functions

 policy_relaxed_stream (edge<> &consumed_data_)
 Constructs and does basic initialization of the policy object.
template<typename UniverseT>
size_t match (UniverseT &universe_)
 Defines CTTL production rule function to evaluate grammar describing white space.


Constructor & Destructor Documentation

policy_relaxed_stream edge<> &  consumed_data_  )  [inline]
 

Constructs and does basic initialization of the policy object.

Definition at line 170 of file xml_stream_policy.h.


Member Function Documentation

size_t match UniverseT &  universe_  )  [inline]
 

Defines CTTL production rule function to evaluate grammar describing white space.

UniverseT
Template parameter specifying type of the parseable universe. Mutable universe, cttl::edge, is expected.
Parameters:
universe_ Reference to the parseable universe.
Returns:
Absolute position of the universe upper boundary after white space expression has been evaluated.
Postcondition:
This function always succeeds and returns a valid offset within the specified universe of discourse. The function may choose to read more information from the input file, if available. If end of file is reached, the function closes the input file and updates state of the policy object accordingly. Additionally, before data is loaded from the file, the substring of input specified by the consumed_data substring is discarded, so that the memory used by the parser is freed.

Reimplemented from policy_strict_stream.

Definition at line 203 of file xml_stream_policy.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 2 17:43:34 2006 for CTTL XML stream parser sample by  doxygen 1.3.9.1