#include <ExitHandler.hpp>
Public Member Functions | |
ExitHandler () | |
void | setEntryPoint (REXXPFN e) |
bool | isEnabled () |
void | disable () |
int | call (RexxActivity *activity, RexxActivation *activation, int major, int minor, void *parms) |
ExitHandler & | operator= (ExitHandler &o) |
void | resolve (const char *name) |
void | resolve (RexxContextExitHandler *handler) |
Protected Types | |
enum | ExitType { UNRESOLVED , REGISTERED_NAME , DIRECT } |
Protected Attributes | |
REXXPFN | entryPoint |
ExitType | type |
Definition at line 52 of file ExitHandler.hpp.
|
protected |
Enumerator | |
---|---|
UNRESOLVED | |
REGISTERED_NAME | |
DIRECT |
Definition at line 80 of file ExitHandler.hpp.
|
inline |
Definition at line 55 of file ExitHandler.hpp.
References type, and UNRESOLVED.
int ExitHandler::call | ( | RexxActivity * | activity, |
RexxActivation * | activation, | ||
int | function, | ||
int | subfunction, | ||
void * | parms | ||
) |
Call an exit
activity | The current activity. |
activation | The top-most activation. |
function | The exit major function code. |
subfunction | The exit minor function code. |
parms | The parameter block passed to the exit. |
Definition at line 59 of file ExitHandler.cpp.
References entryPoint, ExitHandlerDispatcher::rc, REGISTERED_NAME, RexxActivity::run(), and type.
Referenced by RexxActivity::callExit().
|
inline |
Definition at line 62 of file ExitHandler.hpp.
References entryPoint.
Referenced by RexxActivity::disableExit().
|
inline |
Definition at line 57 of file ExitHandler.hpp.
References entryPoint.
Referenced by RexxActivity::isExitEnabled().
|
inline |
Definition at line 68 of file ExitHandler.hpp.
References entryPoint, and type.
void ExitHandler::resolve | ( | const char * | name | ) |
Resolve a classic-style exit handler to the actual target entry point address and invocation style.
name | The registered exit name. |
Definition at line 86 of file ExitHandler.cpp.
References entryPoint, REGISTERED_NAME, RexxResolveExit(), and type.
Referenced by RexxActivity::setExitHandler(), and InterpreterInstance::setExitHandler().
void ExitHandler::resolve | ( | RexxContextExitHandler * | handler | ) |
Resolve a classic-style exit handler to the actual target entry point address and invocation style.
name | The registered exit name. |
Definition at line 99 of file ExitHandler.cpp.
References DIRECT, entryPoint, and type.
|
inline |
Definition at line 56 of file ExitHandler.hpp.
References entryPoint.
Referenced by RexxActivity::setExitHandler(), and InterpreterInstance::setExitHandler().
|
protected |
Definition at line 87 of file ExitHandler.hpp.
Referenced by call(), disable(), isEnabled(), operator=(), resolve(), and setEntryPoint().
|
protected |
Definition at line 88 of file ExitHandler.hpp.
Referenced by call(), ExitHandler(), operator=(), and resolve().