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 print_timestamp : unit -> unit
35 method set_timestamp: timestamp -> 'self
36 method set_lib_db: db -> 'self
37 method set_lib_status: #g_status -> 'self
40 (* it also checks it and add it to the environment *)
41 val add_obj: #status as 'status -> NCic.obj -> 'status
43 #status as 'status -> NCic.universe -> NCic.universe -> 'status
44 val aliases_of: #status -> NUri.uri -> NReference.reference list
45 val resolve: #status -> string -> NReference.reference list
47 (* warning: get_obj may raise (NCicEnvironment.ObjectNotFoud l) *)
48 val get_obj: #NCic.status -> NUri.uri -> NCic.obj (* changes the current timestamp *)
51 val time_travel: #status -> unit
53 val init: string option -> unit
58 class type g_dumpable_status =
63 class dumpable_status :
66 inherit g_dumpable_status
69 method set_dump: dump -> 'self
70 method set_dumpable_status: #g_dumpable_status -> 'self
73 val get_transitively_included: #dumpable_status -> NUri.uri list
74 val dump_obj: #dumpable_status as 'status -> obj -> 'status
76 module type SerializerType =
80 type 'a register_type =
82 refresh_uri_in_universe:(NCic.universe -> NCic.universe) ->
83 refresh_uri_in_term:(NCicEnvironment.status -> NCic.term -> NCic.term) ->
84 refresh_uri_in_reference:(NReference.reference -> NReference.reference) ->
86 dumpable_status -> dumpable_status
88 val register: < run: 'a. string -> 'a register_type -> ('a -> obj) >
89 val serialize: baseuri:NUri.uri -> dumpable_status -> unit
91 NUri.uri -> fname:string -> alias_only:bool ->
92 dumpable_status -> dumpable_status
93 val dependencies_of: string option -> baseuri:NUri.uri -> string list
96 module Serializer(D: sig type dumpable_s val get: dumpable_s -> dumpable_status
97 val set: dumpable_s -> dumpable_status -> dumpable_s val user : dumpable_s ->
99 SerializerType with type dumpable_status = D.dumpable_s
101 val refresh_uri: NUri.uri -> NUri.uri
103 val ng_path_of_baseuri: ?no_suffix:bool -> string option -> NUri.uri -> string