All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:
Inheritance graph
[legend]
Collaboration diagram for SurgSim::Framework::FileOutput:
Collaboration graph
[legend]

Public Member Functions

 FileOutput (const std::string &filename)
 Constructor. More...
 
virtual ~FileOutput ()
 
virtual 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

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

Constructor.

Parameters
filenameThe filename to be used for writing
SurgSim::Framework::FileOutput::~FileOutput ( )
virtual

Member Function Documentation

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

std::string SurgSim::Framework::FileOutput::m_filename
private
boost::mutex SurgSim::Framework::FileOutput::m_mutex
private
std::ofstream SurgSim::Framework::FileOutput::m_stream
private

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