4.3.0
|
|
Freundlich's C++ toolkit |
Represents information gathered at the assertion side.
This class is used to construct exceptions thrown by assert macros.
Public Member Functions | |
FCPPT_DETAIL_SYMBOL | information (fcppt::assert_::file &&file, fcppt::assert_::line line, fcppt::assert_::function &&function, fcppt::assert_::condition &&condition, fcppt::assert_::message &&message) |
Constructs the information. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::file const & | file () const |
Returns the current file. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::line | line () const |
Returns the line of the current file. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::function const & | function () const |
Returns the current function. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::condition const & | condition () const |
Returns the failed condition. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::message const & | message () const |
Returns the message of the assertion. | |
FCPPT_DETAIL_SYMBOL fcppt::assert_::information::information | ( | fcppt::assert_::file && | file, |
fcppt::assert_::line | line, | ||
fcppt::assert_::function && | function, | ||
fcppt::assert_::condition && | condition, | ||
fcppt::assert_::message && | message | ||
) |
Constructs the information.
Constructs the information from file, line, function, condition and message.
file | The current file |
line | The line of the current file |
function | The current function |
condition | The failed condition |
message | The message of the assertion |
FCPPT_DETAIL_SYMBOL fcppt::assert_::condition const & fcppt::assert_::information::condition | ( | ) | const |
Returns the failed condition.
FCPPT_DETAIL_SYMBOL fcppt::assert_::file const & fcppt::assert_::information::file | ( | ) | const |
Returns the current file.
FCPPT_DETAIL_SYMBOL fcppt::assert_::function const & fcppt::assert_::information::function | ( | ) | const |
Returns the current function.
FCPPT_DETAIL_SYMBOL fcppt::assert_::line fcppt::assert_::information::line | ( | ) | const |
Returns the line of the current file.
FCPPT_DETAIL_SYMBOL fcppt::assert_::message const & fcppt::assert_::information::message | ( | ) | const |
Returns the message of the assertion.