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
20 method timestamp: timestamp
26 method set_timestamp: timestamp -> 'self
27 method set_library_status: #g_status -> 'self
30 (* it also checks it and add it to the environment *)
31 val add_obj: #status as 'status -> NCic.obj -> 'status
33 #status as 'status -> NCic.universe -> NCic.universe -> 'status
34 val aliases_of: NUri.uri -> NReference.reference list
35 val resolve: string -> NReference.reference list
36 (* warning: get_obj may raise (NCicEnvironment.ObjectNotFoud l) *)
37 val get_obj: NUri.uri -> NCic.obj (* changes the current timestamp *)
39 val clear_cache : unit -> unit
41 val time_travel: #status -> unit
42 val decompile: baseuri:NUri.uri -> unit
44 module type Serializer =
50 ('a -> refresh_uri_in_universe:(NCic.universe -> NCic.universe) -> refresh_uri_in_term:(NCic.term -> NCic.term) -> status -> status) ->
52 val serialize: baseuri:NUri.uri -> obj list -> unit
53 val require: baseuri:NUri.uri -> status -> status
56 module Serializer(S: sig type status end): Serializer with type status= S.status
58 val init: unit -> unit
60 (* CSC: only required during old-to-NG phase, to be deleted *)
61 val refresh_uri: NUri.uri -> NUri.uri