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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
1
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
1
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_gripes_h) |
|
24 #define octave_gripes_h 1 |
1
|
25 |
2374
|
26 #include <string> |
|
27 |
5275
|
28 #include "oct-types.h" |
|
29 |
2086
|
30 class octave_value; |
620
|
31 |
6109
|
32 extern OCTINTERP_API void |
2799
|
33 gripe_not_supported (const char *); |
|
34 |
6109
|
35 extern OCTINTERP_API void |
6890
|
36 gripe_not_implemented (const char *); |
|
37 |
|
38 extern OCTINTERP_API void |
2799
|
39 gripe_string_invalid (void); |
|
40 |
6109
|
41 extern OCTINTERP_API void |
2799
|
42 gripe_range_invalid (void); |
|
43 |
6109
|
44 extern OCTINTERP_API void |
2799
|
45 gripe_nonconformant (void); |
|
46 |
6109
|
47 extern OCTINTERP_API void |
5275
|
48 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); |
2799
|
49 |
6109
|
50 extern OCTINTERP_API void |
2799
|
51 gripe_empty_arg (const char *name, bool is_error); |
|
52 |
6109
|
53 extern OCTINTERP_API void |
2799
|
54 gripe_square_matrix_required (const char *name); |
|
55 |
6109
|
56 extern OCTINTERP_API void |
2799
|
57 gripe_user_supplied_eval (const char *name); |
|
58 |
6109
|
59 extern OCTINTERP_API void |
2799
|
60 gripe_user_returned_invalid (const char *name); |
|
61 |
6109
|
62 extern OCTINTERP_API void |
3523
|
63 gripe_invalid_conversion (const std::string& from, const std::string& to); |
2799
|
64 |
6109
|
65 extern OCTINTERP_API void |
2799
|
66 gripe_invalid_value_specified (const char *name); |
|
67 |
6109
|
68 extern OCTINTERP_API void |
2799
|
69 gripe_2_or_3_dim_plot (void); |
|
70 |
6109
|
71 extern OCTINTERP_API void |
2799
|
72 gripe_unrecognized_float_fmt (void); |
|
73 |
6109
|
74 extern OCTINTERP_API void |
2799
|
75 gripe_unrecognized_data_fmt (const char *warn_for); |
|
76 |
6109
|
77 extern OCTINTERP_API void |
2799
|
78 gripe_data_conversion (const char *from, const char *to); |
|
79 |
6109
|
80 extern OCTINTERP_API void |
5602
|
81 gripe_wrong_type_arg (const char *name, const char *s, |
|
82 bool is_error = true); |
|
83 |
6109
|
84 extern OCTINTERP_API void |
3523
|
85 gripe_wrong_type_arg (const char *name, const std::string& s, |
2799
|
86 bool is_error = true); |
|
87 |
6109
|
88 extern OCTINTERP_API void |
2799
|
89 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
|
90 bool is_error = true); |
|
91 |
6109
|
92 extern OCTINTERP_API void |
2799
|
93 gripe_wrong_type_arg_for_unary_op (const octave_value& op); |
|
94 |
6109
|
95 extern OCTINTERP_API void |
2799
|
96 gripe_wrong_type_arg_for_binary_op (const octave_value& op); |
|
97 |
6109
|
98 extern OCTINTERP_API void |
5781
|
99 gripe_implicit_conversion (const char *id, const char *from, const char *to); |
2799
|
100 |
6109
|
101 extern OCTINTERP_API void |
5781
|
102 gripe_implicit_conversion (const std::string& id, const std::string& from, |
|
103 const std::string& to); |
4452
|
104 |
6109
|
105 extern OCTINTERP_API void |
2799
|
106 gripe_divide_by_zero (void); |
1
|
107 |
6109
|
108 extern OCTINTERP_API void |
5943
|
109 gripe_logical_conversion (void); |
|
110 |
1
|
111 #endif |
|
112 |
|
113 /* |
|
114 ;;; Local Variables: *** |
|
115 ;;; mode: C++ *** |
|
116 ;;; End: *** |
|
117 */ |