Go to the documentation of this file.00001
00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00003 #pragma implementation
00004 #endif
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "vnl_error.h"
00020 #include <vcl_iostream.h>
00021 #include <vcl_cstdlib.h>
00022
00023
00024 void vnl_error_vector_index (char const* fcn, int index)
00025 {
00026
00027 vcl_cerr << "vnl_error_vector_index:" << fcn
00028 << ": Invalid value " << index << " specified for index.\n";
00029 vcl_abort();
00030 }
00031
00032
00033 void vnl_error_vector_dimension (char const* fcn, int l1, int l2)
00034 {
00035
00036 vcl_cerr << "vnl_error_vector_dimension:" << fcn << ": Dimensions ["
00037 << l1 << "] and [" << l2 << "] do not match.\n";
00038 vcl_abort();
00039 }
00040
00041
00042
00043 void vnl_error_vector_va_arg (int n)
00044 {
00045
00046 vcl_cerr << "vnl_error_vector_va_arg: Invalid type in ..."
00047 << " or wrong alignment with " << n << " bytes.\n";
00048 vcl_abort();
00049 }
00050
00051
00052
00053 void vnl_error_matrix_row_index (char const* fcn, int r)
00054 {
00055
00056 vcl_cerr << "vnl_error_matrix_row_index:" << fcn
00057 << ": Invalid value " << r << " specified for row.\n";
00058 vcl_abort();
00059 }
00060
00061
00062
00063 void vnl_error_matrix_col_index (char const* fcn, int c)
00064 {
00065
00066 vcl_cerr << "vnl_error_matrix_col_index:" << fcn << ": Invalid value "
00067 << c << " specified for column.\n";
00068 vcl_abort();
00069 }
00070
00071
00072 void vnl_error_matrix_dimension (char const* fcn, int r1, int c1, int r2, int c2)
00073 {
00074
00075 vcl_cerr << "vnl_error_matrix_dimension:" << fcn << ": Dimensions [" << r1
00076 << ',' << c1 << "] and [" << r2 << ',' << c2 << "] do not match.\n";
00077 vcl_abort();
00078 }
00079
00080
00081
00082 void vnl_error_matrix_nonsquare (char const* fcn)
00083 {
00084
00085 vcl_cerr << "vnl_error_matrix_nonsquare:" << fcn
00086 << ": Matrix must be square.\n";
00087 vcl_abort();
00088 }
00089
00090
00091 void vnl_error_matrix_va_arg (int n)
00092 {
00093
00094 vcl_cerr << "vnl_error_matrix_va_arg: Invalid type in ..."
00095 << " or wrong alignment with " << n << " bytes.\n";
00096 vcl_abort();
00097 }