Defines a user defined function that will be the EDMinterface main output function. This function defines the EDMinterface current output device. The prototype for such an user defined function is:
void myOutputFunction(char *stringToOutput);
The effect of this operation will last until the calling application is terminated or until a new invocation of the edmiDefineOutputFunction function.
The default EDMinterface current output device is the applications standard output device stdio.
Related functions: edmiCompileFile , edmiCompileExpress_X , edmiConvertModelBN , edmiValidateModel , edmiValidateModelBN , edmiValidateInstanceTypeBN , edmiValidateInstance , edmiReadStepFile , edmiWriteStepFile .
Header:
#include "sdai.h"
Prototype:
EdmiOutput edmiDefineOutputFunction(EdmiOutput pFunction);
Arguments:
pFunction |
Specifies the function that will be the EDMinterface main output function. This function will implicitly define the EDMinterface current output device. |
Returns:
A value of type EdmiOutput that defines the current EDMinterface main output function at the invocation of this function, hence it is possible to reset the EDMinterface main output function to the old value after an invocation of the edmiDefineOutputFunction function.
EXAMPLE
EdmiOutput myOutputFunction, oldOutputFunction;
...
oldOutputFunction = edmiDefineOutputFunction(myOutputFunction);
. . .
edmiDefineOutputFunction(oldOutputFunction); /* reset to old function */
. . .