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< ESIElement > | Pointer |
Public Member Functions | |
esiTry (esiTreeParentPtr aParent) | |
~esiTry () override | |
void | render (ESISegment::Pointer) override |
bool | addElement (ESIElement::Pointer) override |
void | fail (ESIElement *, char const *=nullptr) override |
esiProcessResult_t | process (int dovars) override |
void | provideData (ESISegment::Pointer data, ESIElement *source) override |
Pointer | makeCacheable () const override |
Pointer | makeUsable (esiTreeParentPtr, ESIVarState &) const override |
void | finish () override |
virtual bool | mayFail () const |
Static Public Member Functions | |
static ESIElementType_t | IdentifyElement (const char *) |
Public Attributes | |
ESIElement::Pointer | attempt |
ESIElement::Pointer | except |
struct { | |
unsigned int attemptok:1 | |
unsigned int exceptok:1 | |
unsigned int attemptfailed:1 | |
unsigned 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
Member Typedef Documentation
◆ Pointer
|
inherited |
Member Enumeration Documentation
◆ ESIElementType_t
|
inherited |
Constructor & Destructor Documentation
◆ esiTry() [1/2]
esiTry::esiTry | ( | esiTreeParentPtr | aParent | ) |
Definition at line 1628 of file Esi.cc.
References flags.
Referenced by makeCacheable(), and makeUsable().
◆ ~esiTry()
◆ esiTry() [2/2]
|
private |
Member Function Documentation
◆ addElement()
|
overridevirtual |
Reimplemented from ESIElement.
Definition at line 1658 of file Esi.cc.
References attempt, DBG_IMPORTANT, debugs, except, and RefCount< C >::getRaw().
◆ bestAttemptRV()
|
private |
Definition at line 1694 of file Esi.cc.
References ESI_PROCESS_COMPLETE, ESI_PROCESS_PENDING_MAYFAIL, and flags.
Referenced by process().
◆ fail()
|
overridevirtual |
Reimplemented from esiTreeParent.
Definition at line 1794 of file Esi.cc.
References assert, attempt, debugs, except, flags, and notifyParent().
◆ finish()
|
overridevirtual |
Implements ESIElement.
Definition at line 1870 of file Esi.cc.
References attempt, except, ESIElement::finish(), RefCount< C >::getRaw(), and parent.
◆ IdentifyElement()
|
staticinherited |
Definition at line 852 of file Esi.cc.
References assert, ESIElement::ESI_ELEMENT_ASSIGN, ESIElement::ESI_ELEMENT_ATTEMPT, ESIElement::ESI_ELEMENT_CHOOSE, ESIElement::ESI_ELEMENT_COMMENT, ESIElement::ESI_ELEMENT_EXCEPT, ESIElement::ESI_ELEMENT_INCLUDE, ESIElement::ESI_ELEMENT_NONE, ESIElement::ESI_ELEMENT_OTHERWISE, ESIElement::ESI_ELEMENT_REMOVE, ESIElement::ESI_ELEMENT_TRY, ESIElement::ESI_ELEMENT_VARS, and ESIElement::ESI_ELEMENT_WHEN.
Referenced by ESIContext::end(), and ESIContext::start().
◆ makeCacheable()
|
overridevirtual |
Implements ESIElement.
Definition at line 1836 of file Esi.cc.
References esiTry(), attempt, debugs, except, RefCount< C >::getRaw(), and ESIElement::makeCacheable().
◆ makeUsable()
|
overridevirtual |
Implements ESIElement.
Definition at line 1852 of file Esi.cc.
References esiTry(), attempt, debugs, except, RefCount< C >::getRaw(), ESIElement::makeUsable(), and parent.
◆ mayFail()
|
inlinevirtualinherited |
Reimplemented in esiSequence.
Definition at line 77 of file Element.h.
Referenced by ESIContext::send().
◆ MEMPROXY_CLASS()
|
private |
◆ notifyParent()
|
private |
Definition at line 1779 of file Esi.cc.
References except, exceptbuffer, esiTreeParent::fail(), flags, RefCount< C >::getRaw(), parent, and esiTreeParent::provideData().
Referenced by fail(), and provideData().
◆ process()
|
overridevirtual |
Reimplemented from ESIElement.
Definition at line 1703 of file Esi.cc.
References attempt, bestAttemptRV(), DBG_CRITICAL, debugs, ESI_PROCESS_COMPLETE, ESI_PROCESS_FAILED, ESI_PROCESS_PENDING_MAYFAIL, ESI_PROCESS_PENDING_WONTFAIL, except, flags, RefCount< C >::getRaw(), and ESIElement::process().
◆ provideData()
|
overridevirtual |
Reimplemented from esiTreeParent.
Definition at line 1810 of file Esi.cc.
References assert, attempt, except, exceptbuffer, flags, ESISegment::ListTransfer(), notifyParent(), parent, and esiTreeParent::provideData().
◆ render()
|
overridevirtual |
Implements ESIElement.
Definition at line 1636 of file Esi.cc.
References assert, attempt, debugs, except, exceptbuffer, flags, RefCount< C >::getRaw(), ESISegment::ListTransfer(), and ESIElement::render().
Member Data Documentation
◆ attempt
ESIElement::Pointer esiTry::attempt |
Definition at line 140 of file Esi.cc.
Referenced by esiTry(), addElement(), fail(), finish(), makeCacheable(), makeUsable(), process(), provideData(), and render().
◆ attemptfailed
◆ attemptok
◆ except
ESIElement::Pointer esiTry::except |
Definition at line 141 of file Esi.cc.
Referenced by esiTry(), addElement(), fail(), finish(), makeCacheable(), makeUsable(), notifyParent(), process(), provideData(), and render().
◆ exceptbuffer
|
private |
Definition at line 154 of file Esi.cc.
Referenced by esiTry(), notifyParent(), provideData(), and render().
◆ exceptfailed
◆ exceptok
◆
struct { ... } esiTry::flags |
Referenced by esiTry(), bestAttemptRV(), fail(), notifyParent(), process(), provideData(), and render().
◆ parent
|
private |
Definition at line 153 of file Esi.cc.
Referenced by esiTry(), finish(), makeUsable(), notifyParent(), and provideData().
The documentation for this class was generated from the following file:
- src/esi/Esi.cc