| CppUnit project page | FAQ | CppUnit home page |
#include <SourceLine.h>
Public Methods | |
| SourceLine () | |
| SourceLine (const std::string &fileName, int lineNumber) | |
| virtual | ~SourceLine () |
| Destructor. More... | |
| bool | isValid () const |
| int | lineNumber () const |
| std::string | fileName () const |
| bool | operator== (const SourceLine &other) const |
| bool | operator!= (const SourceLine &other) const |
Private Attributes | |
| std::string | m_fileName |
| int | m_lineNumber |
Related Functions | |
| (Note that these are not member functions.) | |
| CPPUNIT_SOURCELINE() | |
| Constructs a SourceLine object initialized with the location where the macro is expanded. More... | |
Used to capture the failure location in assertion.
Use the CPPUNIT_SOURCELINE() macro to construct that object. Typically used when writing an assertion macro in association with Asserter.
|
|
|
|
||||||||||||
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |