|
PLearn 0.1
|
This plugin connects the logging mechanism to PlideLogPStreamBuf. More...


Public Member Functions | |
| PlideLogPlugin (PythonCodeSnippet *python) | |
| virtual PStream & | getStream (PStream::mode_t outmode, const string &module_name, int requested_verbosity) |
Protected Attributes | |
| boost::scoped_ptr< std::string > | m_string |
| PP< PlideLogPStreamBuf > | m_streambuf |
| PStream | m_pstream |
This plugin connects the logging mechanism to PlideLogPStreamBuf.
| 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) { }
| 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;
}
PStream PLearn::PlideLogPlugin::m_pstream [protected] |
PP<PlideLogPStreamBuf> PLearn::PlideLogPlugin::m_streambuf [protected] |
boost::scoped_ptr<std::string> PLearn::PlideLogPlugin::m_string [protected] |
1.7.4