X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicLibrary.mli;h=2911204ae50d0370375b56f4ac772e370a0952fb;hb=b68e52f889215ce2c21c3d771f59b2d2057d53c1;hp=a6b3a69096a68bd68afc5cd3f56bc7b1dddabb15;hpb=e48acbc0d00717ce8f12412673ece4e4ee0e9642;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicLibrary.mli b/helm/software/components/ng_kernel/nCicLibrary.mli index a6b3a6909..2911204ae 100644 --- a/helm/software/components/ng_kernel/nCicLibrary.mli +++ b/helm/software/components/ng_kernel/nCicLibrary.mli @@ -11,8 +11,48 @@ (* $Id$ *) -exception ObjectNotFound of string Lazy.t +exception LibraryOutOfSync of string Lazy.t -val get_obj: NUri.uri -> NCic.obj +type timestamp + +class status : + object ('self) + method timestamp: timestamp + method set_timestamp: timestamp -> 'self + method set_library_status: -> 'self + end + +(* it also checks it and add it to the environment *) +val add_obj: #status as 'status -> NCic.obj -> 'status +val add_constraint: + #status as 'status -> bool -> NCic.universe -> NCic.universe -> 'status +val aliases_of: NUri.uri -> NReference.reference list +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 + +module type Serializer = + sig + type status + type obj + val register: + string -> + ('a -> refresh_uri_in_universe:(NCic.universe -> NCic.universe) -> refresh_uri_in_term:(NCic.term -> NCic.term) -> status -> status) -> + ('a -> obj) + val serialize: baseuri:NUri.uri -> obj list -> unit + val require: baseuri:NUri.uri -> status -> status + end + +module Serializer(S: sig type status end): Serializer with type status= S.status + +val init: unit -> unit + +(* CSC: only required during old-to-NG phase, to be deleted *) +val refresh_uri: NUri.uri -> NUri.uri (* EOF *)