#include <Literal.h>

Inheritance diagram for esiLiteral:
Collaboration diagram for esiLiteral:

Public Types

enum  ESIElementType_t {
  ESI_ELEMENT_NONE,
  ESI_ELEMENT_INCLUDE,
  ESI_ELEMENT_COMMENT,
  ESI_ELEMENT_REMOVE,
  ESI_ELEMENT_TRY,
  ESI_ELEMENT_ATTEMPT,
  ESI_ELEMENT_EXCEPT,
  ESI_ELEMENT_VARS,
  ESI_ELEMENT_CHOOSE,
  ESI_ELEMENT_WHEN,
  ESI_ELEMENT_OTHERWISE,
  ESI_ELEMENT_ASSIGN
}
 
typedef RefCount< ESIElementPointer
 

Public Member Functions

 esiLiteral (ESISegment::Pointer)
 
 esiLiteral (ESIContext *, const char *s, int len)
 
 ~esiLiteral ()
 
void render (ESISegment::Pointer)
 
esiProcessResult_t process (int dovars)
 
Pointer makeCacheable () const
 
Pointer makeUsable (esiTreeParentPtr, ESIVarState &) const
 
void finish ()
 
virtual bool addElement (ESIElement::Pointer)
 
virtual bool mayFail () const
 
virtual void provideData (ESISegment::Pointer data, ESIElement *source)
 
virtual void fail (ESIElement *source, char const *reason=NULL)
 

Static Public Member Functions

static ESIElementType_t IdentifyElement (const char *)
 

Public Attributes

ESISegment::Pointer buffer
 
struct {
   int   donevars:1
 
flags
 
ESIVarStatevarState
 

Private Member Functions

 MEMPROXY_CLASS (esiLiteral)
 
 esiLiteral (esiLiteral const &)
 

Detailed Description

Definition at line 18 of file Literal.h.

Member Typedef Documentation

Definition at line 44 of file Element.h.

Member Enumeration Documentation

Enumerator
ESI_ELEMENT_NONE 
ESI_ELEMENT_INCLUDE 
ESI_ELEMENT_COMMENT 
ESI_ELEMENT_REMOVE 
ESI_ELEMENT_TRY 
ESI_ELEMENT_ATTEMPT 
ESI_ELEMENT_EXCEPT 
ESI_ELEMENT_VARS 
ESI_ELEMENT_CHOOSE 
ESI_ELEMENT_WHEN 
ESI_ELEMENT_OTHERWISE 
ESI_ELEMENT_ASSIGN 

Definition at line 47 of file Element.h.

Constructor & Destructor Documentation

esiLiteral::esiLiteral ( ESISegment::Pointer  aSegment)

Definition at line 1493 of file Esi.cc.

References flags.

Referenced by makeCacheable(), and makeUsable().

esiLiteral::esiLiteral ( ESIContext context,
const char *  s,
int  len 
)
esiLiteral::~esiLiteral ( )

Definition at line 1486 of file Esi.cc.

References cbdataReferenceDone, debugs, ESISegmentFreeList(), and ESIContext::varState.

esiLiteral::esiLiteral ( esiLiteral const &  old)
private

Definition at line 1565 of file Esi.cc.

References flags.

Member Function Documentation

virtual bool ESIElement::addElement ( ESIElement::Pointer  )
inlinevirtualinherited

Reimplemented in esiChoose, esiTry, esiRemove, ESIAssign, and esiSequence.

Definition at line 62 of file Element.h.

References debugs.

Referenced by ESIContext::addLiteral(), and ESIContext::addStackElement().

virtual void esiTreeParent::fail ( ESIElement source,
char const *  reason = NULL 
)
inlinevirtualinherited
void esiLiteral::finish ( )
virtual

Implements ESIElement.

Definition at line 1502 of file Esi.cc.

ESIElement::Pointer esiLiteral::makeCacheable ( ) const
virtual

Implements ESIElement.

Definition at line 1572 of file Esi.cc.

References esiLiteral().

ESIElement::Pointer esiLiteral::makeUsable ( esiTreeParentPtr  ,
ESIVarState newVarState 
) const
virtual

Implements ESIElement.

Definition at line 1578 of file Esi.cc.

References cbdataReference, debugs, esiLiteral(), and varState.

virtual bool ESIElement::mayFail ( ) const
inlinevirtualinherited

Reimplemented in esiSequence.

Definition at line 75 of file Element.h.

Referenced by ESIContext::send().

esiLiteral::MEMPROXY_CLASS ( esiLiteral  )
private
virtual void esiTreeParent::provideData ( ESISegment::Pointer  data,
ESIElement source 
)
inlinevirtualinherited
void esiLiteral::render ( ESISegment::Pointer  output)
virtual

Implements ESIElement.

Definition at line 1531 of file Esi.cc.

References assert, buffer, debugs, RefCount< C >::getRaw(), ESISegment::next, and NULL.

Member Data Documentation

ESISegment::Pointer esiLiteral::buffer

Definition at line 32 of file Literal.h.

Referenced by esiLiteral(), process(), and render().

int esiLiteral::donevars

Definition at line 35 of file Literal.h.

struct { ... } esiLiteral::flags

Referenced by esiLiteral(), and process().

ESIVarState* esiLiteral::varState

Definition at line 38 of file Literal.h.

Referenced by esiLiteral(), makeUsable(), and process().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors