00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (octave_gripes_h)
00025 #define octave_gripes_h 1
00026
00027 #include <string>
00028
00029 class octave_value;
00030
00031 extern OCTINTERP_API void
00032 gripe_not_supported (const char *);
00033
00034 extern OCTINTERP_API void
00035 gripe_not_implemented (const char *);
00036
00037 extern OCTINTERP_API void
00038 gripe_string_invalid (void);
00039
00040 extern OCTINTERP_API void
00041 gripe_range_invalid (void);
00042
00043 extern OCTINTERP_API void
00044 gripe_nonconformant (void);
00045
00046 extern OCTINTERP_API void
00047 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2);
00048
00049 extern OCTINTERP_API void
00050 gripe_empty_arg (const char *name, bool is_error);
00051
00052 extern OCTINTERP_API void
00053 gripe_square_matrix_required (const char *name);
00054
00055 extern OCTINTERP_API void
00056 gripe_user_supplied_eval (const char *name);
00057
00058 extern OCTINTERP_API void
00059 gripe_user_returned_invalid (const char *name);
00060
00061 extern OCTINTERP_API void
00062 gripe_invalid_conversion (const std::string& from, const std::string& to);
00063
00064 extern OCTINTERP_API void
00065 gripe_invalid_value_specified (const char *name);
00066
00067 extern OCTINTERP_API void
00068 gripe_2_or_3_dim_plot (void);
00069
00070 extern OCTINTERP_API void
00071 gripe_unrecognized_float_fmt (void);
00072
00073 extern OCTINTERP_API void
00074 gripe_unrecognized_data_fmt (const char *warn_for);
00075
00076 extern OCTINTERP_API void
00077 gripe_data_conversion (const char *from, const char *to);
00078
00079 extern OCTINTERP_API void
00080 gripe_wrong_type_arg (const char *name, const char *s,
00081 bool is_error = true);
00082
00083 extern OCTINTERP_API void
00084 gripe_wrong_type_arg (const char *name, const std::string& s,
00085 bool is_error = true);
00086
00087 extern OCTINTERP_API void
00088 gripe_wrong_type_arg (const char *name, const octave_value& tc,
00089 bool is_error = true);
00090
00091 extern OCTINTERP_API void
00092 gripe_wrong_type_arg (const std::string& name, const octave_value& tc,
00093 bool is_error = true);
00094
00095 extern OCTINTERP_API void
00096 gripe_wrong_type_arg_for_unary_op (const octave_value& op);
00097
00098 extern OCTINTERP_API void
00099 gripe_wrong_type_arg_for_binary_op (const octave_value& op);
00100
00101 extern OCTINTERP_API void
00102 gripe_implicit_conversion (const char *id, const char *from, const char *to);
00103
00104 extern OCTINTERP_API void
00105 gripe_implicit_conversion (const std::string& id, const std::string& from,
00106 const std::string& to);
00107
00108 extern OCTINTERP_API void
00109 gripe_truncated_conversion (const char *srctype, const char *desttype);
00110
00111 extern OCTINTERP_API void
00112 gripe_binop_integer_math_truncated (const char *op, const char *type1, const char *type2);
00113
00114 extern OCTINTERP_API void
00115 gripe_native_integer_math_truncated (const char *fcn, const char *type);
00116
00117 extern OCTINTERP_API void
00118 gripe_unop_integer_math_truncated (const char *op, const char *type);
00119
00120 extern OCTINTERP_API void
00121 gripe_non_integer_conversion (const char *srctype, const char *desttype);
00122
00123 extern OCTINTERP_API void
00124 gripe_nan_conversion (const char *srctype, const char *desttype);
00125
00126 extern OCTINTERP_API void
00127 gripe_divide_by_zero (void);
00128
00129 extern OCTINTERP_API void
00130 gripe_logical_conversion (void);
00131
00132 extern OCTINTERP_API void
00133 gripe_library_execution_error (void);
00134
00135 extern OCTINTERP_API void
00136 gripe_invalid_inquiry_subscript (void);
00137
00138 extern OCTINTERP_API void
00139 gripe_indexed_cs_list (void);
00140
00141 extern OCTINTERP_API void
00142 gripe_warn_complex_cmp (void);
00143
00144 #endif
00145
00146
00147
00148
00149
00150