PLearn 0.1
Public Member Functions | Protected Attributes
PLearn::PlideLogPlugin Class Reference

This plugin connects the logging mechanism to PlideLogPStreamBuf. More...

Inheritance diagram for PLearn::PlideLogPlugin:
Inheritance graph
[legend]
Collaboration diagram for PLearn::PlideLogPlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PlideLogPlugin (PythonCodeSnippet *python)
virtual PStreamgetStream (PStream::mode_t outmode, const string &module_name, int requested_verbosity)

Protected Attributes

boost::scoped_ptr< std::string > m_string
PP< PlideLogPStreamBufm_streambuf
PStream m_pstream

Detailed Description

This plugin connects the logging mechanism to PlideLogPStreamBuf.

Definition at line 190 of file Plide.cc.


Constructor & Destructor Documentation

PLearn::PlideLogPlugin::PlideLogPlugin ( PythonCodeSnippet python) [inline]

Definition at line 193 of file Plide.cc.

        : m_string(new std::string),
          m_streambuf(new PlideLogPStreamBuf(m_string.get(), python)),
          m_pstream(m_streambuf)
    { }

Member Function Documentation

PStream & PLearn::PlideLogPlugin::getStream ( PStream::mode_t  outmode,
const string &  module_name,
int  requested_verbosity 
) [virtual]

Implements PLearn::PL_LogPlugin.

Definition at line 208 of file Plide.cc.

References PLASSERT.

{
    PLASSERT( m_streambuf );
    m_pstream.setOutMode(outmode);
    m_streambuf->outputParameters(module_name, requested_verbosity);
    m_streambuf->flush();
    return m_pstream;
}

Member Data Documentation

Definition at line 205 of file Plide.cc.

Definition at line 204 of file Plide.cc.

boost::scoped_ptr<std::string> PLearn::PlideLogPlugin::m_string [protected]

Definition at line 203 of file Plide.cc.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines