1
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 2000, 2003, 2005, 2006, |
|
4 2007 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
1
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
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 |
6890
|
37 gripe_not_implemented (const char *); |
|
38 |
|
39 extern OCTINTERP_API void |
2799
|
40 gripe_string_invalid (void); |
|
41 |
6109
|
42 extern OCTINTERP_API void |
2799
|
43 gripe_range_invalid (void); |
|
44 |
6109
|
45 extern OCTINTERP_API void |
2799
|
46 gripe_nonconformant (void); |
|
47 |
6109
|
48 extern OCTINTERP_API void |
5275
|
49 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); |
2799
|
50 |
6109
|
51 extern OCTINTERP_API void |
2799
|
52 gripe_empty_arg (const char *name, bool is_error); |
|
53 |
6109
|
54 extern OCTINTERP_API void |
2799
|
55 gripe_square_matrix_required (const char *name); |
|
56 |
6109
|
57 extern OCTINTERP_API void |
2799
|
58 gripe_user_supplied_eval (const char *name); |
|
59 |
6109
|
60 extern OCTINTERP_API void |
2799
|
61 gripe_user_returned_invalid (const char *name); |
|
62 |
6109
|
63 extern OCTINTERP_API void |
3523
|
64 gripe_invalid_conversion (const std::string& from, const std::string& to); |
2799
|
65 |
6109
|
66 extern OCTINTERP_API void |
2799
|
67 gripe_invalid_value_specified (const char *name); |
|
68 |
6109
|
69 extern OCTINTERP_API void |
2799
|
70 gripe_2_or_3_dim_plot (void); |
|
71 |
6109
|
72 extern OCTINTERP_API void |
2799
|
73 gripe_unrecognized_float_fmt (void); |
|
74 |
6109
|
75 extern OCTINTERP_API void |
2799
|
76 gripe_unrecognized_data_fmt (const char *warn_for); |
|
77 |
6109
|
78 extern OCTINTERP_API void |
2799
|
79 gripe_data_conversion (const char *from, const char *to); |
|
80 |
6109
|
81 extern OCTINTERP_API void |
5602
|
82 gripe_wrong_type_arg (const char *name, const char *s, |
|
83 bool is_error = true); |
|
84 |
6109
|
85 extern OCTINTERP_API void |
3523
|
86 gripe_wrong_type_arg (const char *name, const std::string& s, |
2799
|
87 bool is_error = true); |
|
88 |
6109
|
89 extern OCTINTERP_API void |
2799
|
90 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
|
91 bool is_error = true); |
|
92 |
6109
|
93 extern OCTINTERP_API void |
7352
|
94 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, |
|
95 bool is_error = true); |
|
96 |
|
97 extern OCTINTERP_API void |
2799
|
98 gripe_wrong_type_arg_for_unary_op (const octave_value& op); |
|
99 |
6109
|
100 extern OCTINTERP_API void |
2799
|
101 gripe_wrong_type_arg_for_binary_op (const octave_value& op); |
|
102 |
6109
|
103 extern OCTINTERP_API void |
5781
|
104 gripe_implicit_conversion (const char *id, const char *from, const char *to); |
2799
|
105 |
6109
|
106 extern OCTINTERP_API void |
5781
|
107 gripe_implicit_conversion (const std::string& id, const std::string& from, |
|
108 const std::string& to); |
4452
|
109 |
6109
|
110 extern OCTINTERP_API void |
2799
|
111 gripe_divide_by_zero (void); |
1
|
112 |
6109
|
113 extern OCTINTERP_API void |
5943
|
114 gripe_logical_conversion (void); |
|
115 |
1
|
116 #endif |
|
117 |
|
118 /* |
|
119 ;;; Local Variables: *** |
|
120 ;;; mode: C++ *** |
|
121 ;;; End: *** |
|
122 */ |