A formated message with details.
More...
#include <robottestingframework/TestMessage.h>
A formated message with details.
- Examples:
- simple_fixture.cpp.
Definition at line 32 of file TestMessage.h.
◆ TestMessage() [1/4]
robottestingframework::TestMessage::TestMessage |
( |
| ) |
|
◆ TestMessage() [2/4]
robottestingframework::TestMessage::TestMessage |
( |
const TestMessage & |
other | ) |
|
Copy constructor.
- Parameters
-
◆ TestMessage() [3/4]
robottestingframework::TestMessage::TestMessage |
( |
const std::string |
msg, |
|
|
const std::string |
filename = "" , |
|
|
unsigned int |
line = 0 |
|
) |
| |
TestMessage construct a test message.
- Parameters
-
msg | the message |
filename | the source file name of the code for the corresponding message |
line | the line number of the code for the corresponding message |
◆ TestMessage() [4/4]
robottestingframework::TestMessage::TestMessage |
( |
const std::string |
msg, |
|
|
const std::string |
detail, |
|
|
const std::string |
filename = "" , |
|
|
unsigned int |
line = 0 |
|
) |
| |
TestMessage construct a test message.
- Parameters
-
msg | the message |
detail | the detail of the message |
filename | the source file name of the code for the corresponding message |
line | the line number of the code for the corresponding message |
◆ ~TestMessage()
virtual robottestingframework::TestMessage::~TestMessage |
( |
| ) |
|
|
virtual |
◆ clear()
void robottestingframework::TestMessage::clear |
( |
| ) |
|
◆ getDetail()
std::string robottestingframework::TestMessage::getDetail |
( |
| ) |
|
getMessage returns the detail string
- Returns
- string
◆ getMessage()
std::string robottestingframework::TestMessage::getMessage |
( |
| ) |
|
getMessage returns the message string
- Returns
- string
◆ getSourceFileName()
std::string robottestingframework::TestMessage::getSourceFileName |
( |
| ) |
|
getSourceFileName
- Returns
- the source file name of the code for the corresponding message
◆ getSourceLineNumber()
unsigned int robottestingframework::TestMessage::getSourceLineNumber |
( |
| ) |
|
getSourceLineNumber
- Returns
- the line number of the code for the corresponding message
◆ setDetail()
void robottestingframework::TestMessage::setDetail |
( |
const std::string |
detail | ) |
|
setDetail sets the detail of the messsage
- Parameters
-
detail | the detailed message string |
◆ setMessage()
void robottestingframework::TestMessage::setMessage |
( |
const std::string |
message | ) |
|
setMessage sets the message
- Parameters
-
message | the message string |
◆ setSourceFileName()
void robottestingframework::TestMessage::setSourceFileName |
( |
const std::string |
filename | ) |
|
setSourceFileName set the source file name of the code for the corresponding message
- Parameters
-
◆ setSourceLineNumber()
void robottestingframework::TestMessage::setSourceLineNumber |
( |
unsigned int |
line | ) |
|
setSourceLineNumber set the line number of the code for the corresponding message
- Parameters
-
◆ lineNumber
unsigned int robottestingframework::TestMessage::lineNumber |
|
private |
◆ strDetail
std::string robottestingframework::TestMessage::strDetail |
|
private |
◆ strFileName
std::string robottestingframework::TestMessage::strFileName |
|
private |
◆ strMessage
std::string robottestingframework::TestMessage::strMessage |
|
private |
The documentation for this class was generated from the following file:
- src/robottestingframework/include/robottestingframework/TestMessage.h