packages/Utils/harness/DBC.cc
//===========================================================================//
/*!
 * Build the error string (private member function).
 * \param cond Condition (test) that failed.
 * \param file The name of the file where the assertion was tested.
 * \param line The line number in the file where the assertion was tested.
 * \retval myMessage A string that contains the failed condition, the file and
 * the line number of the error.
 */
Build the error string (private member function).
\param cond Condition (test) that failed.
\param file The name of the file where the assertion was tested.
\param line The line number in the file where the assertion was tested.
\retval myMessage A string that contains the failed condition, the file and
the line number of the error.
Build the error string ( private member function ) . \ param cond Condition ( test ) that failed . \ param file The name of the file where the assertion was tested . \ param line The line number in the file where the assertion was tested . \ retval myMessage A string that contains the failed condition the file and the line number of the error .
std::string assertion::build_message( std::string const & cond,
                                      std::string const & file,
                                      int         const line ) const
{
    std::ostringstream myMessage;
    myMessage << "Assertion: "
              << cond
              << ", failed in "
              << file
              << ":"
              << line;
    return myMessage.str();
}
std :: string assertion :: build_message ( std :: string const & cond , std :: string const & file , int const line ) const { std :: ostringstream myMessage ; myMessage << " " << cond << " " << file << " " << line ; return myMessage . str ( ) ; }
Build the error string (private member function).
Build the error string ( private member function ) .