sevreporter/src/sevreporter.cxx
//
// This function generates the report from the report data
//
This function generates the report from the report data
This function generates the report from the report data
static int generateReport(rootFolder *root, char const *output)
{
  int             retval    = -1;
  reportStream   *outstream = 0;
  reportTemplate *templ     = 0;
  if ( root && output )
    {
      if ( outstream = selectReportStream(rptgenArg_value(rptgenArg_REPORT_FORMAT), output) )
	{
	  if ( templ = selectReportTemplate(rptgenArg_value(rptgenArg_REPORT_TEMPLATE)) )
	    {
	      retval = root->serialize(outstream, templ);
	    }
	}
    }
  FREE_OBJECT(outstream);
  FREE_OBJECT(templ);
  return retval;
}
static int generateReport ( rootFolder * root , char const * output ) { int retval = -1 ; reportStream * outstream = 0 ; reportTemplate * templ = 0 ; if ( root && output ) { if ( outstream = selectReportStream ( rptgenArg_value ( rptgenArg_REPORT_FORMAT ) , output ) ) { if ( templ = selectReportTemplate ( rptgenArg_value ( rptgenArg_REPORT_TEMPLATE ) ) ) { retval = root -> serialize ( outstream , templ ) ; } } } FREE_OBJECT ( outstream ) ; FREE_OBJECT ( templ ) ; return retval ; }
This function generates the report from the report data
This function generates the report from the report data
// get a report stream of the appropriate type // get the proper report template // generate the report // free resources