]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/http_getter_map.ml
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / http_getter / http_getter_map.ml
index c4ff0102f48e13f35131913f4966ead9ac2d80a7..b7ac1c605d7a4d435f9642205dd1a315e07fc2c6 100644 (file)
@@ -1,5 +1,7 @@
 (*
- *  Copyright (C) 2003, HELM Team.
+ * Copyright (C) 2003:
+ *    Stefano Zacchiroli <zack@cs.unibo.it>
+ *    for the HELM Team http://helm.cs.unibo.it/
  *
  *  This file is part of HELM, an Hypertextual, Electronic
  *  Library of Mathematics, developed at the Computer Science
@@ -21,7 +23,7 @@
  *  MA  02111-1307, USA.
  *
  *  For details, see the HELM World-Wide-Web page,
- *  http://cs.unibo.it/helm/.
+ *  http://helm.cs.unibo.it/
  *)
 
 exception Key_already_in of string;;
@@ -46,6 +48,11 @@ class map dbname =
         with Dbm.Dbm_error "Entry already exists" -> raise (Key_already_in key)
       ))
 
+    method replace key value =
+      self#doWriter (lazy (
+        Dbm.replace db key value
+      ))
+
     method remove key =
       self#doWriter (lazy (
         try