Public Member Functions | Private Attributes | List of all members
SurgSim::Framework::FileOutput Class Reference

Class to output logging information to a give file. More...

#include <SurgSim/Framework/LogOutput.h>

Inheritance diagram for SurgSim::Framework::FileOutput:
SurgSim::Framework::LogOutput

Public Member Functions

 FileOutput (const std::string &filename)
 Constructor. More...
 
bool writeMessage (const std::string &message) override
 
- Public Member Functions inherited from SurgSim::Framework::LogOutput
 LogOutput ()
 
virtual ~LogOutput ()
 

Private Attributes

std::string m_filename
 
std::ofstream m_stream
 
boost::mutex m_mutex
 

Detailed Description

Class to output logging information to a give file.

Constructor & Destructor Documentation

◆ FileOutput()

SurgSim::Framework::FileOutput::FileOutput ( const std::string filename)
explicit

Constructor.

Parameters
filenameThe filename to be used for writing

Member Function Documentation

◆ writeMessage()

bool SurgSim::Framework::FileOutput::writeMessage ( const std::string message)
overridevirtual
Parameters
messageto be written out
Returns
true on success

Implements SurgSim::Framework::LogOutput.

Member Data Documentation

◆ m_filename

std::string SurgSim::Framework::FileOutput::m_filename
private

◆ m_mutex

boost::mutex SurgSim::Framework::FileOutput::m_mutex
private

◆ m_stream

std::ofstream SurgSim::Framework::FileOutput::m_stream
private

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