2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
14 exception LibraryOutOfSync of string Lazy.t
15 exception IncludedFileNotCompiled of string * string
23 inherit NCicEnvironment.g_status
27 class virtual status :
30 inherit NCicEnvironment.status
33 method timestamp: timestamp
34 method set_timestamp: timestamp -> 'self
35 method set_lib_db: db -> 'self
36 method set_lib_status: #g_status -> 'self
39 (* it also checks it and add it to the environment *)
40 val add_obj: #status as 'status -> NCic.obj -> 'status
42 #status as 'status -> NCic.universe -> NCic.universe -> 'status
43 val aliases_of: #status -> NUri.uri -> NReference.reference list
44 val resolve: #status -> string -> NReference.reference list
46 (* warning: get_obj may raise (NCicEnvironment.ObjectNotFoud l) *)
47 val get_obj: #NCic.status -> NUri.uri -> NCic.obj (* changes the current timestamp *)
50 val time_travel: #status -> unit
52 val init: unit -> unit
57 class type g_dumpable_status =
62 class dumpable_status :
65 inherit g_dumpable_status
68 method set_dump: dump -> 'self
69 method set_dumpable_status: #g_dumpable_status -> 'self
72 val get_transitively_included: #dumpable_status -> NUri.uri list
73 val dump_obj: #dumpable_status as 'status -> obj -> 'status
75 module type SerializerType =
79 type 'a register_type =
81 refresh_uri_in_universe:(NCic.universe -> NCic.universe) ->
82 refresh_uri_in_term:(NCicEnvironment.status -> NCic.term -> NCic.term) ->
83 refresh_uri_in_reference:(NReference.reference -> NReference.reference) ->
85 dumpable_status -> dumpable_status
87 val register: < run: 'a. string -> 'a register_type -> ('a -> obj) >
88 val serialize: baseuri:NUri.uri -> dumpable_status -> unit
90 NUri.uri -> fname:string -> alias_only:bool ->
91 dumpable_status -> dumpable_status
92 val dependencies_of: string option -> baseuri:NUri.uri -> string list
95 module Serializer(D: sig type dumpable_s val get: dumpable_s -> dumpable_status
96 val set: dumpable_s -> dumpable_status -> dumpable_s val user : dumpable_s ->
98 SerializerType with type dumpable_status = D.dumpable_s
100 val refresh_uri: NUri.uri -> NUri.uri
102 val ng_path_of_baseuri: ?no_suffix:bool -> string option -> NUri.uri -> string