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