]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_library/nCicLibrary.mli
Big change:
[helm.git] / matita / components / ng_library / nCicLibrary.mli
index de53755f46b674d6cf4d6601723b1c15a91451bc..aff1473c18bdea540949853c36d2d70cf6670b83 100644 (file)
 (* $Id$ *)
 
 exception LibraryOutOfSync of string Lazy.t
+exception IncludedFileNotCompiled of string * string 
 
 type timestamp
 
-class type g_status =
- object
-  method timestamp: timestamp
- end
-
 class status :
  object ('self)
-  inherit g_status
+  method timestamp: timestamp
   method set_timestamp: timestamp -> 'self
-  method set_library_status: #g_status -> 'self
  end
 
 (* it also checks it and add it to the environment *)
@@ -53,12 +48,17 @@ 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
+  val serialize: baseuri:NUri.uri -> dependencies:string list -> 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 require: baseuri:
+   NUri.uri -> alias_only:bool -> dumpable_status -> dumpable_status * obj
+  val dependencies_of: baseuri:NUri.uri -> string list
  end
 
 module Serializer(D: sig type dumpable_status end) :
@@ -70,7 +70,11 @@ class dumpable_status :
   method set_dump: obj list -> 'self
  end
 
-(* 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
+
+(* IMPERATIVE STUFF, TO BE PUT IN THE STATUS *)
+val get_already_included: unit -> NUri.uri list
+
 (* EOF *)