#include <Assertion.hpp>
Public Types | |
enum | Type { REQUIRE, ENSURE, CHECK, ASSERT, NEVERGETHERE } |
Assertion Types enum. More... | |
Public Member Functions | |
Assertion (Type aType, CharPtr aReason, CharPtr aFile, LineNum aLine) | |
Assertion Constructor. | |
Assertion (AssertionCref rExcept) | |
Assertion copy constructor. | |
virtual | ~Assertion (void) |
Virtual Destructor. | |
AssertionRef | operator= (AssertionCref) |
Assignment operator overload. | |
bool | operator== (AssertionCref) |
Comparisson operator overload. | |
Assertion::Type | getType (void) const |
Accessor. |
It contains type information so that clients may filter the types of assertion violations that they catch. There are several types of assertion macros defined. Refer to the comments at the top of Assertion.hpp for details.
Assertion Types enum.
corelinux::Assertion::Assertion | ( | Assertion::Type | aType, | |
CharPtr | aReason, | |||
CharPtr | aFile, | |||
LineNum | aLine | |||
) |
Assertion Constructor.
Type | Specifies the state condition for the assertion | |
Reason | Text describing the assertion | |
File | The source module the assertion was thrown from | |
Line | The throw point line in the source module |
corelinux::Assertion::Assertion | ( | AssertionCref | rExcept | ) |
AssertionRef corelinux::Assertion::operator= | ( | AssertionCref | aAssertion | ) |
Assignment operator overload.
Assertion | const reference |
References getType(), and corelinux::Exception::operator=().
bool corelinux::Assertion::operator== | ( | AssertionCref | ) |
Comparisson operator overload.
Assertion | const reference |
Assertion::Type corelinux::Assertion::getType | ( | void | ) | const |