#include <Parser.h>

Inheritance diagram for ESIParser:
Collaboration diagram for ESIParser:

Classes

class  Register
 

Public Types

typedef RefCount< ESIParserPointer
 

Public Member Functions

virtual bool parse (char const *dataToParse, size_t const lengthOfData, bool const endOfStream)=0
 
virtual long int lineNumber () const =0
 
virtual char const * errorString () const =0
 

Static Public Member Functions

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

Static Public Attributes

static char * Type = nullptr
 

Protected Member Functions

 ESIParser ()
 

Static Private Member Functions

static std::list< Register * > & GetRegistry ()
 

Static Private Attributes

static RegisterParser = nullptr
 

Detailed Description

Definition at line 26 of file Parser.h.

Member Typedef Documentation

◆ Pointer

Definition at line 30 of file Parser.h.

Constructor & Destructor Documentation

◆ ESIParser()

ESIParser::ESIParser ( )
inlineprotected

Definition at line 46 of file Parser.h.

Member Function Documentation

◆ errorString()

virtual char const * ESIParser::errorString ( ) const
pure virtual

◆ GetRegistry()

std::list< ESIParser::Register * > & ESIParser::GetRegistry ( )
staticprivate

◆ lineNumber()

virtual long int ESIParser::lineNumber ( ) const
pure virtual

◆ NewParser()

ESIParser::Pointer ESIParser::NewParser ( ESIParserClient aClient)
static

Definition at line 27 of file Parser.cc.

References debugs, fatalf(), GetRegistry(), and Type.

Referenced by ESIContext::ParserState::init(), and ESIContext::parserComment().

◆ parse()

virtual bool ESIParser::parse ( char const *  dataToParse,
size_t const  lengthOfData,
bool const  endOfStream 
)
pure virtual
Return values
trueon success
falseon what?

Referenced by ESIContext::parseOneBuffer(), and ESIContext::parserComment().

◆ registerParser()

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

Member Data Documentation

◆ Parser

ESIParser::Register * ESIParser::Parser = nullptr
staticprivate

Definition at line 49 of file Parser.h.

◆ Type

char * ESIParser::Type = nullptr
static

Definition at line 34 of file Parser.h.

Referenced by NewParser().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors