SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
PyOutputWrapper.h
Go to the documentation of this file.
1
17/*
18 * @file PyOutputWrapper.h
19 * @author Alejandro Alvarez Ayllon
20 */
21
22#ifndef _SEIMPLEMENTATION_PYOUTPUTWRAPPER_H
23#define _SEIMPLEMENTATION_PYOUTPUTWRAPPER_H
24
25#include <strstream>
26#include <ElementsKernel/Logging.h>
27#include <boost/python/list.hpp>
28#include <boost/python/object.hpp>
29
30namespace SourceXtractor {
31
37public:
38
40
41 // Can not be closed, but expose the API
42 const bool closed;
43 void close();
44
45 // Dummy implementations: do nothing except either ignore or raise an exception
46 int fileno() const;
47 void flush();
48 bool isatty() const;
49 bool readable() const;
50 std::string read(int);
52 boost::python::list readlines(int);
53 int seek(int, int);
54 bool seekable() const;
55 int tell() const;
56 void truncate(int);
57
58 // These do something!
59 bool writable() const;
60 int write(const boost::python::object&);
61 void writelines(const boost::python::list&);
62
63private:
66};
67
68} // end namespace SourceXtractor
69
70#endif // _SEIMPLEMENTATION_PYOUTPUTWRAPPER_H
boost::python::list readlines(int)
void writelines(const boost::python::list &)
PyOutputWrapper(Elements::Logging &logger)
int write(const boost::python::object &)
static Elements::Logging logger