Gromacs
2018.7
|
Exception information writer to format into an std::string.
Public Member Functions | |
void | removeTerminatingLineFeed () |
Post-processes the output string to not end in a line feed. | |
const std::string & | result () const |
Returns the constructed string. | |
virtual void | writeLine (const char *text, int indent) |
Writes a single line of text into the output. More... | |
virtual void | writeErrNoInfo (int errorNumber, const char *funcName, int indent) |
Writes information about a system error (errno-based). More... | |
|
inlinevirtual |
Writes information about a system error (errno-based).
[in] | errorNumber | errno value |
[in] | funcName | Name of the system call (can be NULL). |
[in] | indent | Suggested number of spaces to indent the output. |
Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.
|
inlinevirtual |
Writes a single line of text into the output.
[in] | text | Text to write on the line. |
[in] | indent | Suggested number of spaces to indent the line. |
Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.