Mercurial > octave-nkf
diff src/ov-base.h @ 7719:87eda1f8faaa
octave_user_code: new base class for octave_user_script and octave_user_function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 Apr 2008 22:08:15 -0400 |
parents | 2df457529cfa |
children | 39930366b709 |
line wrap: on
line diff
--- a/src/ov-base.h Wed Apr 16 21:50:59 2008 -0400 +++ b/src/ov-base.h Wed Apr 16 22:08:15 2008 -0400 @@ -51,6 +51,8 @@ class octave_streamoff; class octave_function; class octave_user_function; +class octave_user_script; +class octave_user_code; class octave_fcn_handle; class octave_fcn_inline; class octave_value_list; @@ -296,6 +298,8 @@ virtual bool is_user_function (void) const { return false; } + virtual bool is_user_code (void) const { return false; } + virtual bool is_builtin_function (void) const { return false; } virtual bool is_dld_function (void) const { return false; } @@ -399,6 +403,10 @@ virtual octave_user_function *user_function_value (bool silent = false); + virtual octave_user_script *user_script_value (bool silent = false); + + virtual octave_user_code *user_code_value (bool silent = false); + virtual octave_fcn_handle *fcn_handle_value (bool silent = false); virtual octave_fcn_inline *fcn_inline_value (bool silent = false);