iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | List of all members
imstk::StreamOutput Class Reference

#include <imstkLoggerSynchronous.h>

Inheritance diagram for imstk::StreamOutput:
Inheritance graph
[legend]
Collaboration diagram for imstk::StreamOutput:
Collaboration graph
[legend]

Public Member Functions

 StreamOutput (std::ostream &ostream)
 
bool writeMessage (const std::string &message) override
 

Detailed Description

Class to output logging information to a stream that can be passed into the constructor of the class

Definition at line 96 of file imstkLoggerSynchronous.h.

Constructor & Destructor Documentation

◆ StreamOutput()

imstk::StreamOutput::StreamOutput ( std::ostream &  ostream)
explicit

Constructor

Parameters
ostreamstream to be used for writing ostream parameter to be passed by non-const reference on purpose.

Definition at line 21 of file imstkLoggerSynchronous.cpp.

Member Function Documentation

◆ writeMessage()

bool imstk::StreamOutput::writeMessage ( const std::string &  message)
overridevirtual

Writes a message to the stream.

Parameters
messageMessage to be written to the stream
Returns
True on success

Implements imstk::LogOutput.

Definition at line 26 of file imstkLoggerSynchronous.cpp.

Here is the call graph for this function:

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