Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Assert.h File Reference

This file is part of the AMIRE MR framework and contains the class declaration of the class Assert and several assertation macros. More...

Go to the source code of this file.

Namespaces

namespace  amire
namespace  amire::common

Defines

#define INTERNAL_WARNING   (std::cerr << "internal warning: \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
#define INTERNAL_WARNING1(message)   (std::cerr << "internal warning: " << message << " \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
#define INTERNAL_WARNING2(message1, message2)   (std::cerr << "internal warning: " << message1 << ": " << message2 << " \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
#define EXCEPTION   amire::common::AMIREException(__FILE__, __LINE__)
#define EXCEPTION1(message)   amire::common::AMIREException(__FILE__, __LINE__, (message))
#define EXCEPTION2(message1, message2)   amire::common::AMIREException(__FILE__, __LINE__, (message1), (message2))
#define THROW_EXCEPTION
#define THROW_EXCEPTION1(message)
#define THROW_EXCEPTION2(message1, message2)
#define ABSTRACT_METHOD_ERROR
#define ABSTRACT_METHOD_ERROR1(message)
#define INTERNAL_ERROR
#define INTERNAL_ERROR1(message)
#define NOT_IMPLEMENTED_ERROR   INTERNAL_ERROR1("not implemented")
#define ASSERT(condition)
#define ASSERT1(condition, message)
#define ASSERT2(condition, message1, message2)


Detailed Description

This file is part of the AMIRE MR framework and contains the class declaration of the class Assert and several assertation macros.

Copyright by
© AMIRE Consortium
License
see the enclosed license.txt file.
RCSfile
RCSfile
Assert.h,v
Date:
Date
2003/05/16 14:14:12
Version:
0.0.1
Author:
Jürgen Zauner (juergen.zauner@fh-hagenberg.at)
Author
juergen
Revision
Revision
1.4
Source
Source
D:/Projekte/AMIRE/cvsrepo/AMIRE/AMIRE/src/framework/amire/common/Assert.h,v
Log
Log
Assert.h,v
Revision 1.4 2003/05/16 14:14:12 juergen *** empty log message ***
Revision 1.3 2003/03/26 16:45:27 juergen *** empty log message ***

Revision 1.2 2003/01/31 11:40:48 juergen *** empty log message ***

Revision 1.1.1.1 2002/09/24 16:02:59 juergen no message


Define Documentation

#define ABSTRACT_METHOD_ERROR
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION1("abstract method error!"); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define ABSTRACT_METHOD_ERROR1 message   ) 
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION2("abstract method error:", message); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define ASSERT condition   ) 
 

Value:

{ \
      if (!(condition)) { \
        amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION; \
        throw ____AMIRE_ASSERT_EXCEPTION; \
      } \
    }

#define ASSERT1 condition,
message   ) 
 

Value:

{ \
      if (!(condition)) { \
        amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION1(message); \
        throw ____AMIRE_ASSERT_EXCEPTION; \
      } \
    }

#define ASSERT2 condition,
message1,
message2   ) 
 

Value:

{ \
      if (!(condition)) { \
        amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION2(message1, message2); \
        throw ____AMIRE_ASSERT_EXCEPTION; \
      } \
    }

#define EXCEPTION   amire::common::AMIREException(__FILE__, __LINE__)
 

#define EXCEPTION1 message   )     amire::common::AMIREException(__FILE__, __LINE__, (message))
 

#define EXCEPTION2 message1,
message2   )     amire::common::AMIREException(__FILE__, __LINE__, (message1), (message2))
 

#define INTERNAL_ERROR
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION1("internal error!"); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define INTERNAL_ERROR1 message   ) 
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION2("internal error:", message); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define INTERNAL_WARNING   (std::cerr << "internal warning: \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
 

#define INTERNAL_WARNING1 message   )     (std::cerr << "internal warning: " << message << " \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
 

#define INTERNAL_WARNING2 message1,
message2   )     (std::cerr << "internal warning: " << message1 << ": " << message2 << " \"" << __FILE__ << "\", " << __LINE__ << std::endl << std::flush)
 

#define NOT_IMPLEMENTED_ERROR   INTERNAL_ERROR1("not implemented")
 

#define THROW_EXCEPTION
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION; \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define THROW_EXCEPTION1 message   ) 
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION1(message); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }

#define THROW_EXCEPTION2 message1,
message2   ) 
 

Value:

{ \
      amire::common::AMIREException *____AMIRE_ASSERT_EXCEPTION = new EXCEPTION2(message1, message2); \
      throw ____AMIRE_ASSERT_EXCEPTION; \
    }


Generated on Tue May 20 17:23:54 2003 for AMIRE-Framework by doxygen1.3