X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnRstatus.ml;h=bb2d357d754abc4cd55dae50d8be7e80eb9e037e;hb=c22f39a5d5afc0ef55beb221e00e2e6703b13d90;hp=02eee9837723853c3d616673da31924977b2cc1f;hpb=dcdbb979433a61e2ef2842d96604098728824416;p=helm.git diff --git a/helm/software/components/ng_refiner/nRstatus.ml b/helm/software/components/ng_refiner/nRstatus.ml index 02eee9837..bb2d357d7 100644 --- a/helm/software/components/ng_refiner/nRstatus.ml +++ b/helm/software/components/ng_refiner/nRstatus.ml @@ -11,8 +11,45 @@ (* $Id: nCicRefiner.ml 9802 2009-05-25 15:39:26Z tassi $ *) -type refiner_status = { - coerc_db : NCicCoercion.db; - uhint_db : NCicUnifHint.db; -} +class status = + object (self) + inherit NCicUnifHint.status + inherit NCicCoercion.status + inherit NCicLibrary.status + method set_rstatus + : 'status. + < coerc_db : NCicCoercion.db; + uhint_db : NCicUnifHint.db; + timestamp: NCicLibrary.timestamp; .. > as 'status -> 'self + = fun o -> + ((self#set_unifhint_status o)#set_coercion_status o)#set_library_status o + end +type sstatus = status + +module Serializer = + struct + include NCicLibrary.Serializer(struct type status = sstatus end) + + let require ~baseuri status = + let rstatus = require ~baseuri (status : #status :> status) in + let status = status#set_uhint_db (rstatus#uhint_db) in + let status = status#set_coerc_db (rstatus#coerc_db) in + let status = status#set_timestamp (rstatus#timestamp) in + status + end + +class dumpable_status = + object + inherit status + val dump = ([] : Serializer.obj list) + method dump = dump + method set_dump v = {< dump = v >} + method set_dumpable_status + : 'status. + < coerc_db : NCicCoercion.db; + uhint_db : NCicUnifHint.db; + timestamp: NCicLibrary.timestamp; + dump: Serializer.obj list; .. > as 'status -> 'self + = fun o -> {< dump = o#dump >}#set_rstatus o + end