Assertion Class Reference
[Assertion]

#include <Assertion.h>

Inherited by DbcException.

List of all members.


Detailed Description

Class Assertion provides the fundament for design-by-contract exception classes that are based on std::exception.

See also design-by-contract assertions.


Public Member Functions

Construction
 Assertion (CharCptr aReason, CharCptr aFile, int aLine)
 constructor.

 Assertion (AssertionCref rhs)
 copy constructor.

virtual ~Assertion ()
 destructor.

Operators
AssertionRef operator= (AssertionCref rhs)
 copy assignment.

bool operator== (AssertionCref rhs)
 test for equality.

Accessors
virtual CharCptr what () const
 return a description of the assertion, as reason().

String reason () const
 return the assertion expression as a string.

String file () const
 return the filename.

int line () const
 return the linenumber.


Protected Attributes

String theReason
 the expression as a string

String theFile
 the filename

int theLine
 the linenumber


The documentation for this class was generated from the following file:
Generated on Tue Oct 12 14:12:03 2004 for Rulbus Device Class Library for Microsoft Windows by doxygen 1.3.4