X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_engine%2FgrafiteTypes.ml;h=7cb6bef0c37877feb62dd3bf90bd8755e181d2f1;hb=3c2b1af52212c320f6e4506d10df7077379a222c;hp=fe27a965673652ee084f12a9138e2dc19c1ad3a9;hpb=d8c17db3c787f3ea964bbcd3b27427ca44b356d0;p=helm.git diff --git a/matita/components/grafite_engine/grafiteTypes.ml b/matita/components/grafite_engine/grafiteTypes.ml index fe27a9656..7cb6bef0c 100644 --- a/matita/components/grafite_engine/grafiteTypes.ml +++ b/matita/components/grafite_engine/grafiteTypes.ml @@ -31,7 +31,7 @@ exception Command_error of string let command_error msg = raise (Command_error msg) -class status = fun (b : string) -> +class virtual status = fun (b : string) -> let fake_obj = NUri.uri_of_string "cic:/matita/dummy.decl",0,[],[], NCic.Constant([],"",None,NCic.Implicit `Closed,(`Provided,`Theorem,`Regular)) @@ -45,14 +45,15 @@ class status = fun (b : string) -> inherit TermContentPres.status val baseuri = b val ng_mode = (`CommandMode : [`CommandMode | `ProofMode]) - val dependencies = ([] : string list) method baseuri = baseuri method set_baseuri v = {< baseuri = v >} method ng_mode = ng_mode; method set_ng_mode v = {< ng_mode = v >} - method dependencies = dependencies - method set_dependencies v = {< dependencies = v >} end module Serializer = - NCicLibrary.Serializer(struct type dumpable_status = status end) + NCicLibrary.Serializer(struct + type dumpable_s = status + let get status = (status : #status :> NCicLibrary.dumpable_status) + let set (status : dumpable_s) dump_status = status#set_dumpable_status dump_status + end)