#include <CustomParser.h>

Inheritance diagram for ESICustomParser:
Collaboration diagram for ESICustomParser:

Public Types

typedef RefCount< ESIParserPointer
 

Public Member Functions

 ESICustomParser (ESIParserClient *)
 
 ~ESICustomParser ()
 
bool parse (char const *dataToParse, size_t const lengthOfData, bool const endOfStream)
 
long int lineNumber () const
 
char const * errorString () const
 

Static Public Member Functions

static void registerParser (const char *name, Pointer(*new_func)(ESIParserClient *aClient))
 
static Pointer NewParser (ESIParserClient *aClient)
 

Public Attributes

 EsiParserDeclaration
 

Static Public Attributes

static char * Type = NULL
 

Private Types

enum  ESITAG_t {
  ESITAG =1,
  ESIENDTAG =2,
  ESICOMMENT =3
}
 

Private Member Functions

char const * findTag (char const *a, size_t b)
 

Static Private Member Functions

static Trie * GetTrie ()
 

Private Attributes

ESIParserClienttheClient
 
String error
 
SBuf content
 
ESITAG_t lastTag
 

Static Private Attributes

static Trie * SearchTrie =NULL
 

Detailed Description

Definition at line 23 of file CustomParser.h.

Member Typedef Documentation

Definition at line 27 of file Parser.h.

Member Enumeration Documentation

Enumerator
ESITAG 
ESIENDTAG 
ESICOMMENT 

Definition at line 39 of file CustomParser.h.

Constructor & Destructor Documentation

ESICustomParser::ESICustomParser ( ESIParserClient aClient)

Definition at line 50 of file CustomParser.cc.

ESICustomParser::~ESICustomParser ( )

Definition at line 55 of file CustomParser.cc.

References NULL, and theClient.

Member Function Documentation

char const * ESICustomParser::errorString ( ) const
virtual

Implements ESIParser.

Definition at line 293 of file CustomParser.cc.

References error, String::size(), and String::termedBuf().

char const * ESICustomParser::findTag ( char const *  a,
size_t  b 
)
private

Definition at line 61 of file CustomParser.cc.

References debugs, GetTrie(), lastTag, and NULL.

Referenced by parse().

Trie * ESICustomParser::GetTrie ( )
staticprivate

Definition at line 25 of file CustomParser.cc.

References assert, ESICOMMENT, ESIENDTAG, ESITAG, and SearchTrie.

Referenced by findTag().

long int ESICustomParser::lineNumber ( ) const
virtual

Implements ESIParser.

Definition at line 286 of file CustomParser.cc.

bool ESICustomParser::parse ( char const *  dataToParse,
size_t const  lengthOfData,
bool const  endOfStream 
)
virtual
static void ESIParser::registerParser ( const char *  name,
Pointer(*)(ESIParserClient *aClient)  new_func 
)
staticinherited

Member Data Documentation

SBuf ESICustomParser::content
private

Definition at line 49 of file CustomParser.h.

Referenced by parse().

String ESICustomParser::error
private

Definition at line 47 of file CustomParser.h.

Referenced by errorString(), and parse().

ESICustomParser::EsiParserDeclaration

Definition at line 34 of file CustomParser.h.

ESITAG_t ESICustomParser::lastTag
private

Definition at line 51 of file CustomParser.h.

Referenced by findTag(), and parse().

Trie * ESICustomParser::SearchTrie =NULL
staticprivate

Definition at line 37 of file CustomParser.h.

Referenced by GetTrie().

ESIParserClient* ESICustomParser::theClient
private

Definition at line 46 of file CustomParser.h.

Referenced by parse(), and ~ESICustomParser().

char * ESIParser::Type = NULL
staticinherited

Definition at line 32 of file Parser.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors