| CppUnit project page | FAQ | CppUnit home page |
Represents a source line location.Used to capture the failure location in assertion. More...
#include <SourceLine.h>
Public Member Functions | |
| SourceLine () | |
| SourceLine (const SourceLine &other) | |
| SourceLine (const std::string &fileName, int lineNumber) | |
| SourceLine & | operator= (const SourceLine &other) |
| virtual | ~SourceLine () |
| Destructor. | |
| 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 |
Represents a source line location.
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.
| CPPUNIT_NS_BEGIN SourceLine::SourceLine | ( | ) |
| SourceLine::SourceLine | ( | const SourceLine & | other | ) |
| SourceLine::SourceLine | ( | const std::string & | fileName, |
| int | lineNumber | ||
| ) |
| SourceLine::~SourceLine | ( | ) | [virtual] |
Destructor.
| std::string SourceLine::fileName | ( | ) | const |
| bool SourceLine::isValid | ( | ) | const |
| int SourceLine::lineNumber | ( | ) | const |
| bool SourceLine::operator!= | ( | const SourceLine & | other | ) | const |
| SourceLine & SourceLine::operator= | ( | const SourceLine & | other | ) |
| bool SourceLine::operator== | ( | const SourceLine & | other | ) | const |
std::string SourceLine::m_fileName [private] |
int SourceLine::m_lineNumber [private] |
|
|
hosts this site. |
Send comments to: CppUnit Developers |