gripes.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 1993-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_gripes_h)
00024 #define octave_gripes_h 1
00025 
00026 #include <string>
00027 
00028 #include "lo-array-gripes.h"
00029 
00030 class octave_value;
00031 
00032 extern OCTINTERP_API void
00033 gripe_not_supported (const char *);
00034 
00035 extern OCTINTERP_API void
00036 gripe_not_implemented (const char *);
00037 
00038 extern OCTINTERP_API void
00039 gripe_string_invalid (void);
00040 
00041 extern OCTINTERP_API void
00042 gripe_range_invalid (void);
00043 
00044 extern OCTINTERP_API void
00045 gripe_nonconformant (void);
00046 
00047 extern OCTINTERP_API void
00048 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2);
00049 
00050 extern OCTINTERP_API void
00051 gripe_empty_arg (const char *name, bool is_error);
00052 
00053 extern OCTINTERP_API void
00054 gripe_square_matrix_required (const char *name);
00055 
00056 extern OCTINTERP_API void
00057 gripe_user_supplied_eval (const char *name);
00058 
00059 extern OCTINTERP_API void
00060 gripe_user_returned_invalid (const char *name);
00061 
00062 extern OCTINTERP_API void
00063 gripe_invalid_conversion (const std::string& from, const std::string& to);
00064 
00065 extern OCTINTERP_API void
00066 gripe_invalid_value_specified (const char *name);
00067 
00068 extern OCTINTERP_API void
00069 gripe_2_or_3_dim_plot (void);
00070 
00071 extern OCTINTERP_API void
00072 gripe_unrecognized_float_fmt (void);
00073 
00074 extern OCTINTERP_API void
00075 gripe_unrecognized_data_fmt (const char *warn_for);
00076 
00077 extern OCTINTERP_API void
00078 gripe_data_conversion (const char *from, const char *to);
00079 
00080 extern OCTINTERP_API void
00081 gripe_wrong_type_arg (const char *name, const char *s,
00082                       bool is_error = true);
00083 
00084 extern OCTINTERP_API void
00085 gripe_wrong_type_arg (const char *name, const std::string& s,
00086                       bool is_error = true);
00087 
00088 extern OCTINTERP_API void
00089 gripe_wrong_type_arg (const char *name, const octave_value& tc,
00090                       bool is_error = true);
00091 
00092 extern OCTINTERP_API void
00093 gripe_wrong_type_arg (const std::string& name, const octave_value& tc,
00094                       bool is_error = true);
00095 
00096 extern OCTINTERP_API void
00097 gripe_wrong_type_arg_for_unary_op (const octave_value& op);
00098 
00099 extern OCTINTERP_API void
00100 gripe_wrong_type_arg_for_binary_op (const octave_value& op);
00101 
00102 extern OCTINTERP_API void
00103 gripe_implicit_conversion (const char *id, const char *from, const char *to);
00104 
00105 extern OCTINTERP_API void
00106 gripe_implicit_conversion (const std::string& id, const std::string& from,
00107                            const std::string& to);
00108 
00109 extern OCTINTERP_API void
00110 gripe_divide_by_zero (void);
00111 
00112 extern OCTINTERP_API void
00113 gripe_logical_conversion (void);
00114 
00115 extern OCTINTERP_API void
00116 gripe_library_execution_error (void);
00117 
00118 extern OCTINTERP_API void
00119 gripe_invalid_inquiry_subscript (void);
00120 
00121 extern OCTINTERP_API void
00122 gripe_indexed_cs_list (void);
00123 
00124 extern OCTINTERP_API void
00125 gripe_nonbraced_cs_list_assignment (void);
00126 
00127 extern OCTINTERP_API void
00128 gripe_warn_complex_cmp (void);
00129 
00130 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines