X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_library%2FnCicLibrary.mli;h=14a0685b4a6a74633a13e8abc7cb093e89fc8887;hb=b804ff9f8fba300ffaa54add291e0f6490b757ce;hp=bad0d89752eddcaa92658a49cde7ee51614901e7;hpb=53a5acbe28212706be9c684d612aee1ccb165587;p=helm.git diff --git a/matita/components/ng_library/nCicLibrary.mli b/matita/components/ng_library/nCicLibrary.mli index bad0d8975..14a0685b4 100644 --- a/matita/components/ng_library/nCicLibrary.mli +++ b/matita/components/ng_library/nCicLibrary.mli @@ -12,6 +12,7 @@ (* $Id$ *) exception LibraryOutOfSync of string Lazy.t +exception IncludedFileNotCompiled of string * string type timestamp @@ -30,14 +31,27 @@ val resolve: string -> NReference.reference list (* warning: get_obj may raise (NCicEnvironment.ObjectNotFoud l) *) val get_obj: NUri.uri -> NCic.obj (* changes the current timestamp *) -val clear_cache : unit -> unit - val time_travel: #status -> unit -val decompile: baseuri:NUri.uri -> unit val init: unit -> unit type obj +type dump + +class type g_dumpable_status = + object + method dump: dump + end + +class dumpable_status : + object ('self) + inherit g_dumpable_status + method set_dump: dump -> 'self + method set_dumpable_status: #g_dumpable_status -> 'self + end + +val get_already_included: #dumpable_status -> NUri.uri list +val dump_obj: #dumpable_status as 'status -> obj -> 'status module type SerializerType = sig @@ -47,24 +61,22 @@ module type SerializerType = 'a -> refresh_uri_in_universe:(NCic.universe -> NCic.universe) -> refresh_uri_in_term:(NCic.term -> NCic.term) -> + refresh_uri_in_reference:(NReference.reference -> NReference.reference) -> + alias_only:bool -> dumpable_status -> dumpable_status val register: < run: 'a. string -> 'a register_type -> ('a -> obj) > - val serialize: baseuri:NUri.uri -> obj list -> unit - (* the obj is the "include" command to be added to the dump list *) - val require: baseuri:NUri.uri -> dumpable_status -> dumpable_status * obj + val serialize: baseuri:NUri.uri -> dumpable_status -> unit + val require: baseuri: + NUri.uri -> fname:string -> alias_only:bool -> + dumpable_status -> dumpable_status + val dependencies_of: baseuri:NUri.uri -> string list end -module Serializer(D: sig type dumpable_status end) : - SerializerType with type dumpable_status = D.dumpable_status - -class dumpable_status : - object ('self) - method dump: obj list - method set_dump: obj list -> 'self - end +module Serializer(D: sig type dumpable_s val get: dumpable_s -> dumpable_status val set: dumpable_s -> dumpable_status -> dumpable_s end) : + SerializerType with type dumpable_status = D.dumpable_s -(* CSC: only required during old-to-NG phase, to be deleted *) val refresh_uri: NUri.uri -> NUri.uri +val ng_path_of_baseuri: ?no_suffix:bool -> NUri.uri -> string (* EOF *)