Inheritance diagram for esiTry:
Collaboration diagram for esiTry:

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

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

Static Public Member Functions

static ESIElementType_t IdentifyElement (const char *)
 

Public Attributes

ESIElement::Pointer attempt
 
ESIElement::Pointer except
 
struct {
   int   attemptok:1
 
   int   exceptok:1
 
   int   attemptfailed:1
 
   int   exceptfailed:1
 
flags
 

Private Member Functions

 MEMPROXY_CLASS (esiTry)
 
void notifyParent ()
 
 esiTry (esiTry const &)
 
esiProcessResult_t bestAttemptRV () const
 

Private Attributes

esiTreeParentPtr parent
 
ESISegment::Pointer exceptbuffer
 

Detailed Description

Definition at line 122 of file Esi.cc.

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

esiTry::esiTry ( esiTreeParentPtr  aParent)

Definition at line 1626 of file Esi.cc.

References flags.

Referenced by makeCacheable(), and makeUsable().

esiTry::~esiTry ( )

Definition at line 1621 of file Esi.cc.

References debugs.

esiTry::esiTry ( esiTry const &  old)
private

Definition at line 1821 of file Esi.cc.

References attempt, except, exceptbuffer, flags, NULL, and parent.

Member Function Documentation

bool esiTry::addElement ( ESIElement::Pointer  element)
virtual

Reimplemented from ESIElement.

Definition at line 1656 of file Esi.cc.

References attempt, DBG_IMPORTANT, debugs, except, and RefCount< C >::getRaw().

esiProcessResult_t esiTry::bestAttemptRV ( ) const
private

Definition at line 1692 of file Esi.cc.

References ESI_PROCESS_COMPLETE, ESI_PROCESS_PENDING_MAYFAIL, and flags.

Referenced by process().

void esiTry::fail ( ESIElement source,
char const *  anError = NULL 
)
virtual

Reimplemented from esiTreeParent.

Definition at line 1792 of file Esi.cc.

References assert, attempt, debugs, except, flags, and notifyParent().

void esiTry::finish ( )
virtual

Implements ESIElement.

Definition at line 1868 of file Esi.cc.

References attempt, except, ESIElement::finish(), RefCount< C >::getRaw(), NULL, and parent.

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

Implements ESIElement.

Definition at line 1834 of file Esi.cc.

References attempt, debugs, esiTry(), except, RefCount< C >::getRaw(), and ESIElement::makeCacheable().

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

Implements ESIElement.

Definition at line 1850 of file Esi.cc.

References attempt, debugs, esiTry(), except, RefCount< C >::getRaw(), ESIElement::makeUsable(), and parent.

virtual bool ESIElement::mayFail ( ) const
inlinevirtualinherited

Reimplemented in esiSequence.

Definition at line 75 of file Element.h.

Referenced by ESIContext::send().

esiTry::MEMPROXY_CLASS ( esiTry  )
private
void esiTry::notifyParent ( )
private
void esiTry::provideData ( ESISegment::Pointer  data,
ESIElement source 
)
virtual
void esiTry::render ( ESISegment::Pointer  output)
virtual

Member Data Documentation

ESIElement::Pointer esiTry::attempt

Definition at line 138 of file Esi.cc.

Referenced by addElement(), esiTry(), fail(), finish(), makeCacheable(), makeUsable(), process(), provideData(), and render().

int esiTry::attemptfailed

Definition at line 144 of file Esi.cc.

int esiTry::attemptok

Definition at line 142 of file Esi.cc.

ESISegment::Pointer esiTry::exceptbuffer
private

Definition at line 152 of file Esi.cc.

Referenced by esiTry(), notifyParent(), provideData(), and render().

int esiTry::exceptfailed

Definition at line 145 of file Esi.cc.

int esiTry::exceptok

Definition at line 143 of file Esi.cc.

struct { ... } esiTry::flags
esiTreeParentPtr esiTry::parent
private

Definition at line 151 of file Esi.cc.

Referenced by esiTry(), finish(), makeUsable(), notifyParent(), and provideData().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors