1
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_gripes_h) |
|
24 #define octave_gripes_h 1 |
1
|
25 |
2374
|
26 #include <string> |
|
27 |
2086
|
28 class octave_value; |
620
|
29 |
2799
|
30 |
|
31 extern void |
|
32 gripe_not_supported (const char *); |
|
33 |
|
34 extern void |
|
35 gripe_string_invalid (void); |
|
36 |
|
37 extern void |
|
38 gripe_range_invalid (void); |
|
39 |
|
40 extern void |
|
41 gripe_nonconformant (void); |
|
42 |
|
43 extern void |
|
44 gripe_nonconformant (int r1, int c1, int r2, int c2); |
|
45 |
|
46 extern void |
|
47 gripe_empty_arg (const char *name, bool is_error); |
|
48 |
|
49 extern void |
|
50 gripe_square_matrix_required (const char *name); |
|
51 |
|
52 extern void |
|
53 gripe_user_supplied_eval (const char *name); |
|
54 |
|
55 extern void |
|
56 gripe_user_returned_invalid (const char *name); |
|
57 |
|
58 extern void |
|
59 gripe_invalid_conversion (const string& from, const string& to); |
|
60 |
|
61 extern void |
|
62 gripe_invalid_value_specified (const char *name); |
|
63 |
|
64 extern void |
|
65 gripe_2_or_3_dim_plot (void); |
|
66 |
|
67 extern void |
|
68 gripe_unrecognized_float_fmt (void); |
|
69 |
|
70 extern void |
|
71 gripe_unrecognized_data_fmt (const char *warn_for); |
|
72 |
|
73 extern void |
|
74 gripe_data_conversion (const char *from, const char *to); |
|
75 |
|
76 extern void |
|
77 gripe_wrong_type_arg (const char *name, const string& s, |
|
78 bool is_error = true); |
|
79 |
|
80 extern void |
|
81 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
|
82 bool is_error = true); |
|
83 |
|
84 extern void |
|
85 gripe_wrong_type_arg_for_unary_op (const octave_value& op); |
|
86 |
|
87 extern void |
|
88 gripe_wrong_type_arg_for_binary_op (const octave_value& op); |
|
89 |
|
90 extern void |
|
91 gripe_implicit_conversion (const char *from, const char *to); |
|
92 |
|
93 extern void |
|
94 gripe_divide_by_zero (void); |
1
|
95 |
|
96 #endif |
|
97 |
|
98 /* |
|
99 ;;; Local Variables: *** |
|
100 ;;; mode: C++ *** |
|
101 ;;; End: *** |
|
102 */ |