#include <PAssert.h>
Public Member Functions | |
Assertion (const char *msg, const char *file, int line) | |
Assertion (const Assertion &a) | |
~Assertion () | |
Assertion & | operator= (const Assertion &a) |
const char * | what () const |
const char * | file () const |
int | line () const |
template<class OS > | |
void | print (OS &os) const |
This class should really be derived from std::runtime_error, but unfortunately we don't have good implementation of the library standard yet, on compilers other than KCC. So, this class will keep with the "what" method evidenced in the standard, but dispense with inheriting from classes for which we don't have implementations...
Pooma::Assertion::Assertion | ( | const char * | msg, | |
const char * | file, | |||
int | line | |||
) |
Pooma::Assertion::Assertion | ( | const Assertion & | a | ) |
Pooma::Assertion::~Assertion | ( | ) | [inline] |
const char* Pooma::Assertion::what | ( | ) | const [inline] |
Referenced by print().
const char* Pooma::Assertion::file | ( | ) | const [inline] |
Referenced by print().
int Pooma::Assertion::line | ( | ) | const [inline] |
Referenced by print().
void Pooma::Assertion::print | ( | OS & | os | ) | const [inline] |