#include <Message.h>
Public Methods | |
| Message () | |
| Message (const std::string &shortDesc) | |
| Message (const std::string &shortDesc, const std::string &detail1) | |
| Message (const std::string &shortDesc, const std::string &detail1, const std::string &detail2) | |
| Message (const std::string &shortDesc, const std::string &detail1, const std::string &detail2, const std::string &detail3) | |
| std::string | shortDesc () |
| Returns the short description. More... | |
| std::string | details () const |
| Returns a string that represents a list of the detail strings. More... | |
| void | clearDetails () |
| Removes all detail strings. More... | |
| std::vector< std::string > | getDetails () |
| Return a list of the details. More... | |
| void | addDetail (const std::string &detail) |
| Add a detail. More... | |
| void | addDetail (const std::string &detail1, const std::string &detail2) |
| Add two details. More... | |
| void | addDetail (const std::string &detail1, const std::string &detail2, const std::string &detail3) |
| Add three details. More... | |
| void | setShortDesc (const std::string &shortDesc) |
| Set the short descriptio. More... | |
|
|
Definition at line 52 of file Message.h.
00053 {;}
|
|
|
Definition at line 55 of file Message.h. References shortDesc.
|
|
||||||||||||
|
Definition at line 61 of file Message.h. References addDetail, and shortDesc.
|
|
||||||||||||||||
|
Definition at line 66 of file Message.h. References addDetail, and shortDesc.
|
|
||||||||||||||||||||
|
Definition at line 72 of file Message.h. References addDetail, and shortDesc.
|
|
|
Returns the short description.
Definition at line 82 of file Message.h. Referenced by vrj::test::TestFailure::getFullDescription, Message, and setShortDesc.
00083 { return mShortDesc; }
|
|
|
Returns a string that represents a list of the detail strings. Example: Message message( "not equal", "Expected: 3", "Actual: 7" ); std::string details = message.details(); // details contains: // "- Expected: 3\n- Actual: 7\n"
Definition at line 98 of file Message.h. Referenced by vrj::test::TestFailure::getFullDescription.
00099 {
00100 std::stringstream oss;
00101
00102 for(unsigned i=0;i<mDetails.size();i++)
00103 oss << "- " << mDetails[i] << "\n";
00104
00105 return oss.str();
00106 }
|
|
|
Removes all detail strings.
Definition at line 110 of file Message.h.
00111 { mDetails.clear(); }
|
|
|
Return a list of the details.
Definition at line 114 of file Message.h.
00115 { return mDetails;}
|
|
|
Add a detail.
Definition at line 118 of file Message.h. Referenced by addDetail, and Message.
00119 { mDetails.push_back(detail); }
|
|
||||||||||||
|
Add two details.
Definition at line 122 of file Message.h. References addDetail.
|
|
||||||||||||||||
|
Add three details.
Definition at line 127 of file Message.h. References addDetail.
|
|
|
Set the short descriptio.
Definition at line 133 of file Message.h. References shortDesc.
00134 { mShortDesc = shortDesc; }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002