All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CallbackStreamBuf.h
Go to the documentation of this file.
1 #ifndef GAUDIPYTHON_CALLBACKSTREAMBUF_H
2 #define GAUDIPYTHON_CALLBACKSTREAMBUF_H
3 // ============================================================================
4 #include "Python.h" //included for the python API
5 // ============================================================================
6 #include <sstream> //included for stringbuf
7 // ============================================================================
9 // ============================================================================
10 
11 namespace GaudiPython
12 {
13  int GAUDI_API call_python_method(PyObject* self, const char* method, char* buf);
14 
15  class GAUDI_API CallbackStreamBuf: public std::stringbuf
16  {
17  private:
18  PyObject* m_self;
20 
21  public:
22  CallbackStreamBuf(PyObject* self);
24  virtual int sync() ;
25  }; //CallbackStreamBuf
26 
27 } //namespace GaudiPython
28 
29 #endif
#define GAUDI_API
Definition: Kernel.h:108
GAUDI_API StatusCode call_python_method(PyObject *self, const char *method)
call the python method
Definition: Algorithm.cpp:30