22#ifndef ROBOTTESTINGFRAMEWORK_TESTMESSAGE_H
23#define ROBOTTESTINGFRAMEWORK_TESTMESSAGE_H
56 const std::string filename =
"",
57 unsigned int line = 0);
69 const std::string detail,
70 const std::string filename =
"",
71 unsigned int line = 0);
148#define ROBOTTESTINGFRAMEWORK_SOURCELINE() __LINE__
149#define ROBOTTESTINGFRAMEWORK_SOURCEFILE() __FILE__
A formated message with details.
void setSourceLineNumber(unsigned int line)
setSourceLineNumber set the line number of the code for the corresponding message
TestMessage(const std::string msg, const std::string detail, const std::string filename="", unsigned int line=0)
TestMessage construct a test message.
void clear()
clears the test message
TestMessage(const TestMessage &other)
Copy constructor.
void setSourceFileName(const std::string filename)
setSourceFileName set the source file name of the code for the corresponding message
std::string getSourceFileName()
getSourceFileName
std::string getMessage()
getMessage returns the message string
virtual ~TestMessage()
~TestMessage Destructor
void setMessage(const std::string message)
setMessage sets the message
std::string getDetail()
getMessage returns the detail string
TestMessage(const std::string msg, const std::string filename="", unsigned int line=0)
TestMessage construct a test message.
void setDetail(const std::string detail)
setDetail sets the detail of the messsage
unsigned int getSourceLineNumber()
getSourceLineNumber
TestMessage()
TestMessage construct an emty test message.