diff src/ov-fcn-handle.h @ 5663:775e065f7dc4

[project @ 2006-03-13 21:30:06 by jwe]
author jwe
date Mon, 13 Mar 2006 21:30:07 +0000
parents 6aae52010e3b
children ce79d238f142
line wrap: on
line diff
--- a/src/ov-fcn-handle.h	Fri Mar 10 20:27:00 2006 +0000
+++ b/src/ov-fcn-handle.h	Mon Mar 13 21:30:07 2006 +0000
@@ -41,16 +41,17 @@
 {
 public:
   octave_fcn_handle (void)
-    : fcn (), nm () { }
+    : warn_reload (true), fcn (), nm () { }
 
   octave_fcn_handle (const std::string& n)
-    : fcn (), nm (n) { }
+    : warn_reload (true), fcn (), nm (n) { }
 
   octave_fcn_handle (const octave_value& f,  const std::string& n)
-    : fcn (f), nm (n) { }
+    : warn_reload (true), fcn (f), nm (n) { }
 
   octave_fcn_handle (const octave_fcn_handle& fh)
-    : octave_base_value (fh), fcn (fh.fcn), nm (fh.nm) { }
+    : octave_base_value (fh), warn_reload (fh.warn_reload),
+      fcn (fh.fcn), nm (fh.nm) { }
 
   ~octave_fcn_handle (void) { }
 
@@ -109,6 +110,13 @@
 
   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
 
+  // If TRUE, print a warning if the pointed-to fucntion is out of
+  // date.  This variable may be removed when updating is properly
+  // implemented.
+  mutable bool warn_reload;
+
+  void reload_warning (const std::string& fcn_type) const;
+
 protected:
 
   // The function we are handling.