feisty meow concerns codebase
2.140
|
Root object for any class that knows its own name. More...
#include <contracts.h>
Public Member Functions | |
virtual const char * | class_name () const =0 |
Returns the bare name of this class as a constant character pointer. More... | |
Root object for any class that knows its own name.
This is a really vital thing for debugging to be very helpful, and unfortunately it's not provided by C++.
Definition at line 122 of file contracts.h.
|
pure virtual |
Returns the bare name of this class as a constant character pointer.
The name returned here is supposed to be just a class name and not provide any more information than that. It is especially important not to add any syntactic elements like '::' to the name, since a bare alphanumeric name is expected.
Implemented in basis::text_formable, and application::base_application.
Referenced by unit_test::unit_base::assert_equal(), unit_test::unit_base::assert_false(), unit_test::unit_base::assert_not_equal(), unit_test::unit_base::assert_true(), unit_test::unit_base::record_fail(), and unit_test::unit_base::record_pass().