5-12 SOMobjects Base Toolkit Programmer’s Reference
Manual
someProcessEvents Method
Purpose
Processes infinite events.
IDL Syntax
void someProcessEvents ( );
Description
This call loops forever waiting for events and dispatching them. The only way this can be
broken is by calling someShutdown in a callback routine. It is a programming error to call
this method without having registered interest in any events with EMan. Typically, a call to
this method is the last statement in the main program of an application.
Parameters
receiver A pointer to an object of class SOMEEMan.
ev A pointer to the Environment structure for the calling method.
Example
#include <eman.h>
main()
{
Environment *testEnv = somGetGlobalEnvironment();
SOMEEMan *some_gEMan = SOMEEManNew();
/* Do some registrations */
...
_someProcessEvents(some_gEMan, testEnv);
} /* end of main */
Original Class
SOMEEMan
Related Information
Methods: someProcessEvent, someRegister, someRegisterEv, someRegisterProc
Kommentare zu diesen Handbüchern