X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicLibrary.mli;h=6dc7dde437d52e1e41e22e42e0bff7ee522c470a;hb=7b112b0cd39c5ab0db5c28636c0a7f7e36b4d6e2;hp=a8b546d2e2f58bbef2b93acbd7501deb06046a21;hpb=f4c17198d8afe7c8cd62dbab527d08902d891491;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicLibrary.mli b/helm/software/components/ng_kernel/nCicLibrary.mli index a8b546d2e..6dc7dde43 100644 --- a/helm/software/components/ng_kernel/nCicLibrary.mli +++ b/helm/software/components/ng_kernel/nCicLibrary.mli @@ -15,14 +15,22 @@ exception LibraryOutOfSync of string Lazy.t type timestamp +class type g_status = + object + method timestamp: timestamp + end + class status : object ('self) - method timestamp: timestamp + inherit g_status method set_timestamp: timestamp -> 'self - method set_library_status: -> 'self + method set_library_status: #g_status -> 'self end -val add_obj: #status as 'status -> NUri.uri -> NCic.obj -> 'status +(* 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 -> 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) *) @@ -39,7 +47,7 @@ module type Serializer = type obj val register: string -> - ('a -> refresh_uri_in_term:(NCic.term -> NCic.term) -> status -> status) -> + ('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 @@ -47,4 +55,9 @@ module type Serializer = 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 *)