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

Default implementation of PL_LogPlugin :: outputs to specified PStream (perr by default) More...

#include <pl_log.h>

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

List of all members.

Public Member Functions

 PL_LogPluginPStream (PStream pstream)
virtual PStreamgetStream (PStream::mode_t outmode, const string &module_name, int requested_verbosity)

Protected Attributes

PStream m_pstream
 Actual stream to use.

Detailed Description

Default implementation of PL_LogPlugin :: outputs to specified PStream (perr by default)

Definition at line 106 of file pl_log.h.


Constructor & Destructor Documentation

PLearn::PL_LogPluginPStream::PL_LogPluginPStream ( PStream  pstream) [inline]

Definition at line 109 of file pl_log.h.

        : m_pstream(pstream)
    { }

Member Function Documentation

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

Implements PLearn::PL_LogPlugin.

Definition at line 64 of file pl_log.cc.

References PLearn::PStream::setOutMode().

{
    m_pstream.setOutMode(outmode);
    if (! module_name.empty())
        m_pstream << '[' << module_name << "] ";
    return m_pstream;
}

Here is the call graph for this function:


Member Data Documentation

Actual stream to use.

Definition at line 117 of file pl_log.h.


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