opensurgsim
Public Member Functions | List of all members
SurgSim::Framework::StreamOutput Class Reference

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

#include <LogOutput.h>

Inheritance diagram for SurgSim::Framework::StreamOutput:
SurgSim::Framework::LogOutput

Public Member Functions

 StreamOutput (std::ostream &ostream)
 Constructor. More...
 
bool writeMessage (const std::string &message) override
 Writes a message to the stream. More...
 

Detailed Description

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

Constructor & Destructor Documentation

§ StreamOutput()

SurgSim::Framework::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.

Member Function Documentation

§ writeMessage()

bool SurgSim::Framework::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 SurgSim::Framework::LogOutput.


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