aset_jfe/src/SET_jfe_msg.cxx
/* Some messages are needed to be sent to log_presentation and also
   printed to stdout. msg_to_stdout flag is used to handle that.
*/
Some messages are needed to be sent to log_presentation and also
printed to stdout. msg_to_stdout flag is used to handle that.
Some messages are needed to be sent to log_presentation and also printed to stdout . msg_to_stdout flag is used to handle that .
void ParserMsg( const char *message, int edg_severity, a_boolean msg_to_stdout )
{
    if( message == NULL )
        return;
    msg_sev sev;
    switch(edg_severity) {
	case es_default:
	case es_none:
        case es_remark:
	    sev = normal_sev;
	    break;
	case es_warning:
	case es_discretionary_error:
	    sev = warning_sev;
	    break;
	case es_error:
	    sev = error_sev;
	    break;
	case es_catastrophe:
	case es_command_line_error:
	case es_internal_error:
	    sev = catastrophe_sev;
	    break;
	default:
	    sev = normal_sev;
	    break;
    }
    msg("aset_jfe: $1", sev) << message << eoarg << eom;
    if (msg_to_stdout && msg_viewer_is_running()) {
        printf("aset_jfe: %s\n", message);
    }
}
void ParserMsg ( const char * message , int edg_severity , a_boolean msg_to_stdout ) { if ( message == NULL ) return ; msg_sev sev ; switch ( edg_severity ) { case es_default : case es_none : case es_remark : sev = normal_sev ; break ; case es_warning : case es_discretionary_error : sev = warning_sev ; break ; case es_error : sev = error_sev ; break ; case es_catastrophe : case es_command_line_error : case es_internal_error : sev = catastrophe_sev ; break ; default : sev = normal_sev ; break ; } msg ( " " , sev ) << message << eoarg << eom ; if ( msg_to_stdout && msg_viewer_is_running ( ) ) { printf ( " \n " , message ) ; } }
Some messages are needed to be sent to log_presentation and also
printed to stdout.
Some messages are needed to be sent to log_presentation and also printed to stdout .
/* If msg_to_stdout is true and log_presentation is running then 
           print the message to stdout. If log_presentation is not 
           running then all messages are sent to stdout so there is no 
           need to print to stdout again. 
         */