#include <Attempt.h>

Inheritance diagram for esiAttempt:
Collaboration diagram for esiAttempt:

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

 esiAttempt (esiTreeParentPtr aParent)
 
void render (ESISegment::Pointer)
 
bool addElement (ESIElement::Pointer)
 
esiProcessResult_t process (int dovars)
 
void provideData (ESISegment::Pointer, ESIElement *)
 
bool mayFail () const
 
void wontFail ()
 
void fail (ESIElement *, char const *anError=NULL)
 
void makeCachableElements (esiSequence const &old)
 
Pointer makeCacheable () const
 
void makeUsableElements (esiSequence const &old, ESIVarState &)
 
Pointer makeUsable (esiTreeParentPtr, ESIVarState &) const
 
void finish ()
 

Static Public Member Functions

static ESIElementType_t IdentifyElement (const char *)
 

Public Attributes

Esi::Elements elements
 
size_t processedcount
 
struct {
   int   dovars:1
 
flags
 

Protected Attributes

esiTreeParentPtr parent
 

Detailed Description

Definition at line 17 of file Attempt.h.

Member Typedef Documentation

◆ Pointer

Definition at line 46 of file Element.h.

Member Enumeration Documentation

◆ ESIElementType_t

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 49 of file Element.h.

Constructor & Destructor Documentation

◆ esiAttempt()

esiAttempt::esiAttempt ( esiTreeParentPtr  aParent)
inline

Definition at line 18 of file Attempt.h.

Member Function Documentation

◆ addElement()

bool esiSequence::addElement ( ESIElement::Pointer  element)
virtualinherited

◆ fail()

void esiSequence::fail ( ESIElement source,
char const *  anError = NULL 
)
virtualinherited

◆ finish()

void esiSequence::finish ( )
virtualinherited

Implements ESIElement.

Definition at line 104 of file Sequence.cc.

References debugs, esiSequence::elements, FinishAllElements(), NULL, and esiSequence::parent.

◆ IdentifyElement()

ESIElement::ESIElementType_t ESIElement::IdentifyElement ( const char *  el)
staticinherited

Definition at line 860 of file Esi.cc.

References assert.

Referenced by ESIContext::end(), and ESIContext::start().

◆ makeCachableElements()

void esiSequence::makeCachableElements ( esiSequence const &  old)
inherited

◆ makeCacheable()

◆ makeUsable()

ESIElement::Pointer esiSequence::makeUsable ( esiTreeParentPtr  newParent,
ESIVarState newVarState 
) const
virtualinherited

◆ makeUsableElements()

void esiSequence::makeUsableElements ( esiSequence const &  old,
ESIVarState newVarState 
)
inherited

◆ mayFail()

bool esiSequence::mayFail ( ) const
virtualinherited

Reimplemented from ESIElement.

Definition at line 66 of file Sequence.cc.

References esiSequence::failed, and esiSequence::mayFail_.

◆ process()

◆ provideData()

void esiSequence::provideData ( ESISegment::Pointer  data,
ESIElement source 
)
virtualinherited

◆ render()

void esiSequence::render ( ESISegment::Pointer  output)
virtualinherited

◆ wontFail()

void esiSequence::wontFail ( )
inherited

Definition at line 75 of file Sequence.cc.

References assert, esiSequence::failed, and esiSequence::mayFail_.

Referenced by esiSequence::process().

Member Data Documentation

◆ dovars

int esiSequence::dovars
inherited

Definition at line 43 of file Sequence.h.

Referenced by esiSequence::esiSequence(), and esiSequence::process().

◆ elements

◆ flags

struct { ... } esiSequence::flags

◆ parent

esiTreeParentPtr esiSequence::parent
protectedinherited

◆ processedcount

size_t esiSequence::processedcount
inherited

The documentation for this struct was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors