sevreporter/src/sevreporter.cxx
//
// This function will create the proper reportStream object
//
This function will create the proper reportStream object
This function will create the proper reportStream object
static reportStream *selectReportStream(char const *type, char const *filename)
{
  reportStream *retval = 0;
  if ( type && filename )
    {
      if ( pdstrcasecmp(type, "html") == 0 )
	{
	  retval = new reportStreamHTML(filename);
	}
      else if ( pdstrcasecmp(type, "text") == 0 )
	{
	  retval = new reportStreamText(filename);
	}
    }
  return retval;
}
static reportStream * selectReportStream ( char const * type , char const * filename ) { reportStream * retval = 0 ; if ( type && filename ) { if ( pdstrcasecmp ( type , " " ) == 0 ) { retval = new reportStreamHTML ( filename ) ; } else if ( pdstrcasecmp ( type , " " ) == 0 ) { retval = new reportStreamText ( filename ) ; } } return retval ; }
This function will create the proper reportStream object
This function will create the proper reportStream object