]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/metadata/metadataTypes.mli
added support for hits table
[helm.git] / helm / ocaml / metadata / metadataTypes.mli
1 (* Copyright (C) 2004, HELM Team.
2  * 
3  * This file is part of HELM, an Hypertextual, Electronic
4  * Library of Mathematics, developed at the Computer Science
5  * Department, University of Bologna, Italy.
6  * 
7  * HELM is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * 
12  * HELM is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with HELM; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20  * MA  02111-1307, USA.
21  * 
22  * For details, see the HELM World-Wide-Web page,
23  * http://helm.cs.unibo.it/
24  *)
25
26 val inconcl_pos : string 
27 val mainconcl_pos : string
28 val mainhyp_pos : string
29 val inhyp_pos : string
30 val inbody_pos : string
31
32 type main_position =
33   [ `MainConclusion of int option (* Pi depth *)
34   | `MainHypothesis of int option (* Pi depth *)
35   ]
36
37 type position =
38   [ main_position
39   | `InConclusion
40   | `InHypothesis
41   | `InBody
42   ]
43
44 type pi_depth = int
45
46 type metadata =
47   [ `Sort of Cic.sort * main_position
48   | `Rel of main_position
49   | `Obj of string * position
50   ]
51
52 type constr =
53   [ `Sort of Cic.sort * main_position list
54   | `Rel of main_position list
55   | `Obj of string * position list
56   ]
57
58 val constr_of_metadata: metadata -> constr
59
60   (** invoke this function to set the current owner. Afterwards the functions
61   * below will return the name of the table of the set owner *)
62 val ownerize_tables : string -> unit
63 val are_tables_ownerized : unit -> bool
64
65 val sort_tbl: unit -> string  
66 val rel_tbl: unit -> string
67 val obj_tbl: unit -> string
68 val name_tbl: unit -> string
69 val count_tbl: unit -> string
70
71 val library_sort_tbl:  string  
72 val library_rel_tbl:  string
73 val library_obj_tbl:  string
74 val library_name_tbl:  string
75 val library_count_tbl: string
76 val library_hits_tbl: string
77