13 const std::string &
function,
14 const std::string &container,
15 const std::string &filename,
18 std::stringstream ss_retval;
20 bool bheader = (!filename.empty() || !container.empty() || !
function.empty() || line_no >= 0);
21 if (!filename.empty())
22 ss_retval << filename <<
":";
24 ss_retval << line_no <<
":";
25 if (!container.empty())
27 ss_retval << container;
28 if (!
function.empty())
31 if (!
function.empty())
32 ss_retval <<
function <<
"()";
40 return ss_retval.str();
static std::string generateMessage(const std::string &message, const std::string &function, const std::string &container, const std::string &filename, int line_no)