CommandHandlerDispatcher Class Reference

#include <CommandHandler.hpp>

Inheritance diagram for CommandHandlerDispatcher:
[legend]

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

RexxActivityactivity
 
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
RexxActivityactivity
 
RexxNativeActivationactivation
 
RexxDirectoryconditionData
 

Detailed Description

Definition at line 82 of file CommandHandler.hpp.

Constructor & Destructor Documentation

◆ CommandHandlerDispatcher()

CommandHandlerDispatcher::CommandHandlerDispatcher ( RexxActivity a,
REXXPFN  e,
RexxString c 
)

◆ ~CommandHandlerDispatcher()

virtual CommandHandlerDispatcher::~CommandHandlerDispatcher ( )
inlinevirtual

Definition at line 86 of file CommandHandler.hpp.

Member Function Documentation

◆ complete()

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.

Parameters
resultThe return RC result.
conditionA 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().

◆ run()

void CommandHandlerDispatcher::run ( )
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.

Member Data Documentation

◆ activity

RexxActivity* CommandHandlerDispatcher::activity

Definition at line 91 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), and complete().

◆ default_return_buffer

char CommandHandlerDispatcher::default_return_buffer[DEFRXSTRING]

Definition at line 96 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), and complete().

◆ entryPoint

REXXPFN CommandHandlerDispatcher::entryPoint

Definition at line 92 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), and run().

◆ flags

unsigned short CommandHandlerDispatcher::flags

Definition at line 97 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), complete(), and run().

◆ retstr

RXSTRING CommandHandlerDispatcher::retstr

Definition at line 94 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), complete(), and run().

◆ rxstrcmd

CONSTRXSTRING CommandHandlerDispatcher::rxstrcmd

Definition at line 93 of file CommandHandler.hpp.

Referenced by CommandHandlerDispatcher(), and run().

◆ sbrc

wholenumber_t CommandHandlerDispatcher::sbrc

Definition at line 95 of file CommandHandler.hpp.

Referenced by complete(), and run().


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