#include <CommandHandler.hpp>
Public Member Functions | |
CommandHandlerDispatcher (RexxActivity *a, REXXPFN e, RexxString *c) | |
virtual | ~CommandHandlerDispatcher () |
virtual void | run () |
void | complete (RexxString *command, ProtectedObject &result, ProtectedObject &condition) |
Public Member Functions inherited from CallbackDispatcher | |
CallbackDispatcher () | |
virtual | ~CallbackDispatcher () |
virtual void | handleError (wholenumber_t, RexxDirectory *) |
virtual void | handleError (RexxDirectory *) |
void | setContext (RexxActivity *act, RexxNativeActivation *a) |
Public Attributes | |
RexxActivity * | activity |
REXXPFN | entryPoint |
CONSTRXSTRING | rxstrcmd |
RXSTRING | retstr |
wholenumber_t | sbrc |
char | default_return_buffer [DEFRXSTRING] |
unsigned short | flags |
Public Attributes inherited from CallbackDispatcher | |
wholenumber_t | rc |
Additional Inherited Members | |
Protected Attributes inherited from CallbackDispatcher | |
RexxActivity * | activity |
RexxNativeActivation * | activation |
RexxDirectory * | conditionData |
Definition at line 82 of file CommandHandler.hpp.
CommandHandlerDispatcher::CommandHandlerDispatcher | ( | RexxActivity * | a, |
REXXPFN | e, | ||
RexxString * | c | ||
) |
Definition at line 117 of file CommandHandler.cpp.
References activity, default_return_buffer, DEFRXSTRING, entryPoint, flags, RexxString::getLength(), RexxString::getStringData(), MAKERXSTRING, retstr, and rxstrcmd.
|
inlinevirtual |
Definition at line 86 of file CommandHandler.hpp.
void CommandHandlerDispatcher::complete | ( | RexxString * | command, |
ProtectedObject & | result, | ||
ProtectedObject & | condition | ||
) |
Do post-callout processing of a command dispatch. This code runs after re-entering the interpreter, so all interpreter facilities are available.
result | The return RC result. |
condition | A potential condition return. |
Definition at line 149 of file CommandHandler.cpp.
References activity, RexxActivity::createConditionObject(), default_return_buffer, flags, IntegerZero, new_integer(), new_string(), OREF_NULL, SystemInterpreter::releaseResultMemory(), retstr, RXNULLSTRING, RXSUBCOM_ERROR, RXSUBCOM_FAILURE, sbrc, _RXSTRING::strlength, and _RXSTRING::strptr.
Referenced by CommandHandler::call().
|
virtual |
Process a callout to a system exit function.
Reimplemented from CallbackDispatcher.
Definition at line 134 of file CommandHandler.cpp.
References entryPoint, flags, retstr, rxstrcmd, and sbrc.
RexxActivity* CommandHandlerDispatcher::activity |
Definition at line 91 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), and complete().
char CommandHandlerDispatcher::default_return_buffer[DEFRXSTRING] |
Definition at line 96 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), and complete().
REXXPFN CommandHandlerDispatcher::entryPoint |
Definition at line 92 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), and run().
unsigned short CommandHandlerDispatcher::flags |
Definition at line 97 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), complete(), and run().
RXSTRING CommandHandlerDispatcher::retstr |
Definition at line 94 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), complete(), and run().
CONSTRXSTRING CommandHandlerDispatcher::rxstrcmd |
Definition at line 93 of file CommandHandler.hpp.
Referenced by CommandHandlerDispatcher(), and run().
wholenumber_t CommandHandlerDispatcher::sbrc |
Definition at line 95 of file CommandHandler.hpp.
Referenced by complete(), and run().