sevreporter/src/reportItem.cxx
//
// By default the reportItem handles the TEXT and CODE tags
// as well as the PARA_END and LINE_END tags
//
By default the reportItem handles the TEXT and CODE tags
as well as the PARA_END and LINE_END tags
By default the reportItem handles the TEXT and CODE tags as well as the PARA_END and LINE_END tags
int reportItem::onTag(int t)
{
  int retval = -1;
  if ( current_stream )
    {
      switch ( t )
	{
	case TEXT_MODE:
	  {
	    retval = current_stream->set_mode(reportStream::TEXT);
	    break;
	  }
	case CODE_MODE:
	  {
	    retval = current_stream->set_mode(reportStream::CODE);
	    break;
	  }
	case LINE_END:
	  {
	    retval = current_stream->end_line();
	    break;
	  }
	case PARA_END:
	  {
	    retval = current_stream->end_paragraph();
	    break;
	  }
	default:
	  {
	    break;
	  }
	}
    }
  return retval;
}
int reportItem :: onTag ( int t ) { int retval = -1 ; if ( current_stream ) { switch ( t ) { case TEXT_MODE : { retval = current_stream -> set_mode ( reportStream :: TEXT ) ; break ; } case CODE_MODE : { retval = current_stream -> set_mode ( reportStream :: CODE ) ; break ; } case LINE_END : { retval = current_stream -> end_line ( ) ; break ; } case PARA_END : { retval = current_stream -> end_paragraph ( ) ; break ; } default : { break ; } } } return retval ; }
By default the reportItem handles the TEXT and CODE tags
as well as the PARA_END and LINE_END tags
By default the reportItem handles the TEXT and CODE tags as well as the PARA_END and LINE_END tags