CMPITclPackagedCommand

Name

CMPITclPackagedCommand -- Jacket packagted commands to run in all but he root.

Synopsis


#include <MPITclPackagedCommand.h>
class CMPITclPackagedCommand : public CTCLPackagedObjectProcessor 
{
public:
    CMPITclPackagedCommand(CTCLInterpreter& interp, const char* command, CTCLPackagedObjectProcessor* pActual);
 rotected:
    virtual int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);
};
                

DESCRIPTION

Similar to CMPITclCommand, CTMPITclPackagedCommand wraps a packaged command that will be executed in all processes other than the root process.

METHODS

CTCLPackagedObjectProcessor(CTCLInterpreter& interp, const char* command, CTCLPackagedObjectProcessor* pActual);

Wraps the command processor pActual so that when command is invoked in the interp interpreter, it will be invoked in all but the root process.

int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);

Called in when the command registered is invoked in interp If this is the root process, all other processe will be asked to execute this command. If th is is a non-root process, the encapsulated command processor is asked to execute the command whose words are objv. Note that objv[0] is the command name that dispatched this command.