IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
reportmerger.m
Go to the documentation of this file.
1 %> @brief Merges contents of many log_html
2 %>
3 %> @sa uip_report_estlog.m
5  properties
6  flag_individual = 0;
7  flag_balls = 1;
8  end;
9 
10  methods
11  function o = reportmerger()
12  o.classtitle = 'Report merger';
13  o.inputclass = 'log_html';
14  o.flag_multiin = 1;
15  o.flag_params = 0;
16  end;
17  end;
18 
19  methods(Access=protected)
20  function out = do_use(o, in)
21  out = log_html();
22  out.title = 'Merge';
23 
24  nin = numel(in);
25  for i = 1:nin
26  if i > 1
27  out.html = cat(2, out.html, '<hr />', 10);
28  end;
29  out.html = cat(2, out.html, '<h1>', sprintf('Report %d/%d', i, nin), ' - ', in(i).classtitle, ' - ', in(i).title, '</h1>', 10, in(i).html);
30  end;
31  end;
32  end;
33 end
Merges contents of many log_html.
Definition: reportmerger.m:4
Generated by irreport, carries HTML contents.
Definition: log_html.m:2
Report base class.
Definition: irreport.m:8