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:

## 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

  filename | The filename to be used for writing

## Member Function Documentation

## writeMessage()

bool SurgSim::Framework::FileOutput::writeMessage | ( | const std::string & | message | ) |

override virtual

Parameters

  message | to 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:

- SurgSim/Framework/LogOutput.h
- SurgSim/Framework/LogOutput.cpp