...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiActivateModel (SdaiServerContext serverContextId);
|
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:
Code Block | ||||
---|---|---|---|---|
| ||||
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.
...
Arguments
...
Type | Name | Comment |
EdmiOutput | pFunction | Specifies the function that will be the EDMinterface main output function. This function will implicitly define the EDMinterface current output device. |
...
Return Value
...
Type | Comment |
EdmiOutput | 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. |
...
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiOutput myOutputFunction, oldOutputFunction; |
...
... |
...
oldOutputFunction = edmiDefineOutputFunction(myOutputFunction); |
...
. . . |
...
edmiDefineOutputFunction(oldOutputFunction); /* reset to old function */ |
...
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|