|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
#include <PyOutputWrapper.h>

Public Member Functions | |
| PyOutputWrapper (Elements::Logging &logger) | |
| void | close () |
| int | fileno () const |
| void | flush () |
| bool | isatty () const |
| bool | readable () const |
| std::string | read (int) |
| std::string | readline (int) |
| boost::python::list | readlines (int) |
| int | seek (int, int) |
| bool | seekable () const |
| int | tell () const |
| void | truncate (int) |
| bool | writable () const |
| int | write (const boost::python::object &) |
| void | writelines (const boost::python::list &) |
Public Attributes | |
| const bool | closed |
Private Attributes | |
| Elements::Logging | m_logger |
| std::ostringstream | m_buffer |
File-like object used to redirect stdout and stderr from Python into Elements' logger
Definition at line 36 of file PyOutputWrapper.h.
|
explicit |
Definition at line 31 of file PyOutputWrapper.cpp.
| void SourceXtractor::PyOutputWrapper::close | ( | ) |
Definition at line 33 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| int SourceXtractor::PyOutputWrapper::fileno | ( | ) | const |
Definition at line 38 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| void SourceXtractor::PyOutputWrapper::flush | ( | ) |
Definition at line 44 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| bool SourceXtractor::PyOutputWrapper::isatty | ( | ) | const |
Definition at line 47 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| std::string SourceXtractor::PyOutputWrapper::read | ( | int | ) |
Definition at line 55 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| bool SourceXtractor::PyOutputWrapper::readable | ( | ) | const |
Definition at line 51 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| std::string SourceXtractor::PyOutputWrapper::readline | ( | int | ) |
Definition at line 61 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| bp::list SourceXtractor::PyOutputWrapper::readlines | ( | int | ) |
Definition at line 67 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
Definition at line 73 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| bool SourceXtractor::PyOutputWrapper::seekable | ( | ) | const |
Definition at line 79 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| int SourceXtractor::PyOutputWrapper::tell | ( | ) | const |
Definition at line 83 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
Definition at line 89 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
| bool SourceXtractor::PyOutputWrapper::writable | ( | ) | const |
Definition at line 94 of file PyOutputWrapper.cpp.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
Definition at line 98 of file PyOutputWrapper.cpp.
References Elements::Logging::info(), m_buffer, m_logger, std::string::size(), and std::ostringstream::str().
Referenced by SourceXtractor::BOOST_PYTHON_MODULE(), and writelines().

Definition at line 130 of file PyOutputWrapper.cpp.
References write().
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().

Definition at line 42 of file PyOutputWrapper.h.
Referenced by SourceXtractor::BOOST_PYTHON_MODULE().
|
private |
Definition at line 65 of file PyOutputWrapper.h.
Referenced by write().
|
private |
Definition at line 64 of file PyOutputWrapper.h.
Referenced by write().