module ReportGeneric: sig .. end
This module defines a generic output mode parametrized by functions.
type converter = < file_footer : string -> string; file_header : string -> string;
file_summary : ReportStat.all -> string; footer : string; header :
string; point : int -> int -> Common.point_kind -> string;
summary : ReportStat.all -> string >
val output : (string -> unit) ->
string -> converter -> (string, int array) Hashtbl.t -> unit
output verbose file conv data writes the element for
data to file
file using
conv for data conversion and
verbose for verbose output.
The methods of the
conv instance are used as follows:
header should return the overall header for output;
footer should return the overall footer for output;
summary should return the overall summary for passed statistics;
file_header should return the overall header for passed file;
file_footer should return the overall footer for passed file;
file_summary should return the file summary for passed statistics;
point shoudl return the output for a given point, the parameters
being: offset, number of visits, and point kind.