STFINV library: seek source wavelet correction filter
error.h File Reference

handle error conditions in libstfinv (prototypes) More...

#include <iostream>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  stfinv::Exception
 Base class for exceptions. More...
 

Namespaces

 stfinv
 Root namespace of library.
 

Macros

#define STFINV_abort(M)   throw( stfinv::Exception ( M , __FILE__, __LINE__ ))
 Abort and give a message. More...
 
#define STFINV_assert(C, M)   STFINV_Xassert( C , M , stfinv::Exception )
 Check an assertion and report by throwing an exception. More...
 
#define STFINV_ERROR_H_VERSION   "STFINV_ERROR_H V1.0"
 
#define STFINV_illegal   STFINV_abort("illegal call!")
 Abort if function is called illegally. More...
 
#define STFINV_nonfatal_assert(F, C, M, V)   if (F) { STFINV_report_assert(C,M,V) } else { STFINV_assert(C,M) }
 Macro to distinguish between fatal and non fatal assertions. More...
 
#define STFINV_report_assert(C, M, V)
 Check an assertion and report only. More...
 
#define STFINV_Xassert(C, M, E)   if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); }
 Check an assertion and report by throwing an exception. More...
 

Functions

void stfinv::report_violation (const char *message, const char *file, const int &line, const char *condition)
 report violation of assertion More...
 

Detailed Description

handle error conditions in libstfinv (prototypes)


Author
Thomas Forbriger
Date
05/05/2011

handle error conditions in libstfinv (prototypes)

Copyright (c) 2011 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 05/05/2011 V1.0 Thomas Forbriger

Definition in file error.h.