Previous Up Next

2.4  Module Print signature

Definition of the basic printers.


val print_href : Analyze.href -> unit
val print_header : Analyze.header -> unit
val print_liste : Analyze.liste -> unit
val print_ligne : Analyze.ligne -> unit
val print_htmldoc : Analyze.htmldoc -> unit



Object machinery to handle circular lists of colors.


class virtual duplicatable :
  object ('a)
    method virtual dup : 'a
  end;;

class color : string ->
  object ('a)
    method col : string
    method dup : 'a
  end

class ['a] circular_list :
  object ('b)
    constraint 'a = #duplicatable
    method add : 'a -> unit
    method get : 'a
    method next : 'a
    method dup : 'b
    method clear : unit
  end

type colors = (color circular_list) circular_list



The main function, given a document and all the rendering options, it gegerates the hierarchy of html files.


val hierarchie :
  Analyze.htmldoc ->
    title:string option ->
    footer:string option -> dir:string -> depth:int ->
    css:string option -> bg:string -> text:string ->
    link:string -> vlink:string -> alink:string ->
    bar_width:int -> bar:colors -> list:colors ->
    visibility:bool -> new_age:float -> new_start:string ->
    new_end:string -> separator:string
      -> unit
   



Previous Up Next