GLinePrefix Class Reference

Stateful parser that matches the start of lines to the 'prefix'. More...

#include <GStream.h>

Inheritance diagram for GLinePrefix:

GStreamEnd

List of all members.

Public Member Functions

 GLinePrefix (char *p, bool eol=true)
 Finds some text on the start of a line.
void Reset ()
 Reset the end point's state.
int IsEnd (void *s, int Len)
 Override to process a data chunk to check for an end of stream marker.


Detailed Description

Stateful parser that matches the start of lines to the 'prefix'.

Constructor & Destructor Documentation

GLinePrefix::GLinePrefix ( char *  p,
bool  eol = true 
)

Finds some text on the start of a line.

Parameters:
p  The string to look for on the start of the line
eol  true if you want the index of the end of the line, otherwise the index of the start of the line is returned


Member Function Documentation

int GLinePrefix::IsEnd ( void *  Data,
int  Len 
) [virtual]

Override to process a data chunk to check for an end of stream marker.

Returns:
The index into Data of the end of the stream, indexed from the start of the data, not the start of the current block. Or -1 if the end of stream is not in the data segment

Implements GStreamEnd.


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

Generated on Wed Dec 1 15:41:03 2010 for Lgi by  doxygen 1.5.7.1