Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


 
Close and terminate a running expression logging>, which has previously been defined by the edmiDefineExpressionsLog and started by the edmiStartExpressionsLog functions. Any open expression log file will be flushed and closed by this operation. A new edmiDefineExpressionsLog operation must be performed before the expression logging can be restarted.
Related functions: edmiDefineExpressionsLog , edmiStartExpressionsLog , and edmiStopExpressionsLog
Header:
#include "sdai.h"
Prototype:
EdmiError edmiCloseExpressionsLog(void);
Arguments:
None.
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0: Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
...
If (rstat = edmiDefineExpressionsLog (
"Man2MaleAdult, Woman2FemaleAdult, Child2BoyOrGirl", 
"Child2BoyOrGirl, 200 – 550, 1100 – 1290", 
"/usr/hkd/tmp/expressions.log", 
0, 
"/usr/hkd/tmp/user_output.text", 
FULL_LOG | LOG_TO_FILE | USER_OUTPUT_TO_FILE)) { 
 
/* Error in operation */  
printf("\nError in edmiDefineExpressionsLog: %s", 
edmiGetErrorText(rstat)); 
goto error; 
}
...
edmiStartExpressionsLog();
. . .
edmiStopExpressionsLog();
. . .
edmiStartExpressionsLog();
. . .
edmiCloseExpressionsLog();
. . .

  • No labels