Gromacs  2018.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::anonymous_namespace{exceptions.cpp}::MessageWriterTextWriter Class Reference
+ Inheritance diagram for gmx::anonymous_namespace{exceptions.cpp}::MessageWriterTextWriter:
+ Collaboration diagram for gmx::anonymous_namespace{exceptions.cpp}::MessageWriterTextWriter:

Description

Exception information writer to format into a TextOutputStream.

Public Member Functions

 MessageWriterTextWriter (TextWriter *writer)
 Initializes a writer that writes to the given stream.
 
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...
 

Member Function Documentation

virtual void gmx::anonymous_namespace{exceptions.cpp}::MessageWriterTextWriter::writeErrNoInfo ( int  errorNumber,
const char *  funcName,
int  indent 
)
inlinevirtual

Writes information about a system error (errno-based).

Parameters
[in]errorNumbererrno value
[in]funcNameName of the system call (can be NULL).
[in]indentSuggested number of spaces to indent the output.

Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.

virtual void gmx::anonymous_namespace{exceptions.cpp}::MessageWriterTextWriter::writeLine ( const char *  text,
int  indent 
)
inlinevirtual

Writes a single line of text into the output.

Parameters
[in]textText to write on the line.
[in]indentSuggested number of spaces to indent the line.

Implements gmx::anonymous_namespace{exceptions.cpp}::IMessageWriter.


The documentation for this class was generated from the following file: