mpiEventTypeName

Declaration

const char* mpiEventTypeName(MPIEventType eventType);

Required Header: stdmpi.h

Change History: Added in the 03.03.00

Description

mpiEventTypeName returns a text description for MPI events. mpiEventTypeName should be called when a text description of the event type is needed.

Return Values
"Unknown Event" if EventTypeName cannot identify eventType.
Pointer to Event Type Name if EventTypeName can identify eventType.

Sample Code

/* Prototype for logging function */
void logToFile(const char*);

MPIEventData   eventStatus;
int32_t             returnValue; 

/* Wait for motion event */
returnValue = 
    mpiNotifyEventWait(notify, 
                       &eventStatus, 
                       MPIWaitFOREVER);        
msgCHECK(returnValue);

/* Log event */
logToFile(mpiEventTypeName(eventStatus->type));

See Also

MPIEventType | EventLog.c