| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 // ============================================================================
8 #include "GaudiPython/GaudiPython.h"
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;
19 char* m_callbackBuff;
20
21 public:
22 CallbackStreamBuf(PyObject* self);
23 ~CallbackStreamBuf();
24 virtual int sync() ;
25 }; //CallbackStreamBuf
26
27 } //namespace GaudiPython
28
29 #endif