#include <xml_stream_policy.h>
Inheritance diagram for policy_strict_stream:
This policy class keeps track of the state of xml input file at run time. policy_strict_stream
ignores white space. No white space is recognized or skipped by this class.
Definition at line 43 of file xml_stream_policy.h.
Public Member Functions | |
policy_strict_stream (edge<> &consumed_data_) | |
Constructs and does basic initialization of the policy object. | |
void | operator= (policy_strict_stream const &) const |
Assignment does nothing. | |
bool | init (char *file_) |
Initializes the object: opens the input file. | |
template<typename UniverseT> | |
size_t | match (UniverseT &universe_) |
Defines CTTL production rule function to evaluate grammar describing white space. | |
Protected Attributes | |
char | line_buffer [max_buffer_size] |
Character buffer for reading the data. | |
FILE * | file_stream |
Pointer to an open input file. | |
edge & | consumed_data |
Substring of input that has already been fully processed by the parser, and can be safely discarded from the input text to free up the memory. |
|
Constructs and does basic initialization of the policy object.
Definition at line 74 of file xml_stream_policy.h. References consumed_data, and file_stream. |
|
Initializes the object: opens the input file.
Definition at line 94 of file xml_stream_policy.h. References file_stream. |
|
Defines CTTL production rule function to evaluate grammar describing white space.
Reimplemented in policy_relaxed_stream. Definition at line 127 of file xml_stream_policy.h. References consumed_data, file_stream, and line_buffer. |
|
Assignment does nothing.
Definition at line 82 of file xml_stream_policy.h. |
|
Substring of input that has already been fully processed by the parser, and can be safely discarded from the input text to free up the memory.
Definition at line 70 of file xml_stream_policy.h. Referenced by match(), and policy_strict_stream(). |
|
Pointer to an open input file. A null pointer value indicates that the file has been already closed, and no more input is available. Definition at line 64 of file xml_stream_policy.h. Referenced by init(), match(), and policy_strict_stream(). |
|
Character buffer for reading the data.
Definition at line 57 of file xml_stream_policy.h. Referenced by match(). |