sevreporter/src/rootFolder.cxx
//
// serializing the root will print the whole report
//
serializing the root will print the whole report
serializing the root will print the whole report
int rootFolder::serialize(reportStream *stream, reportTemplate *tagfile)
{
  int retval = -1;
  if ( stream )
    {
      stream->start_report(0);
      titlePageData tpd;
      tpd.title = "Quality Assessment Report";
      stream->print_title_page(&tpd);
      parseDesc(tagfile->getDesc(desc()), stream);
      if ( queries )
	{
	  int n = queries->numItems();
	  for ( int i = 0; i < n; i++ )
	    {
	      reportItem *child = queries->getItem(i);
	      if ( child )
		{
		  child->serialize(stream, tagfile);
		}
	    }
	}
      if ( metrics )
	metrics->serialize(stream, tagfile);
      stream->end_report(0);
      retval = 0;
    }
  return retval;
}
int rootFolder :: serialize ( reportStream * stream , reportTemplate * tagfile ) { int retval = -1 ; if ( stream ) { stream -> start_report ( 0 ) ; titlePageData tpd ; tpd . title = " " ; stream -> print_title_page ( & tpd ) ; parseDesc ( tagfile -> getDesc ( desc ( ) ) , stream ) ; if ( queries ) { int n = queries -> numItems ( ) ; for ( int i = 0 ; i < n ; i ++ ) { reportItem * child = queries -> getItem ( i ) ; if ( child ) { child -> serialize ( stream , tagfile ) ; } } } if ( metrics ) metrics -> serialize ( stream , tagfile ) ; stream -> end_report ( 0 ) ; retval = 0 ; } return retval ; }
serializing the root will print the whole report
serializing the root will print the whole report
// start the report // send title page // send introduction // send query folders // send metric folder // end the report