SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
30 namespace SourceXtractor {
31 
37 public:
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);
51  std::string readline(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 
63 private:
66 };
67 
68 } // end namespace SourceXtractor
69 
70 #endif // _SEIMPLEMENTATION_PYOUTPUTWRAPPER_H
static Elements::Logging logger
STL class.
boost::python::list readlines(int)
PyOutputWrapper(Elements::Logging &logger)
int write(const boost::python::object &)
void writelines(const boost::python::list &)