PyROOTPickle.h File Reference
Detailed Description
Port pickling functionality while awaiting newer release.
- Author:
- Wim Lavrijsen
- Date:
- Apr 2008 PyROOT does not implement direct pickling of ObjectProxy's until release 5.20 of ROOT; this code brings it forward for use in ATLAS.
The code here will make the following changes to PyROOT's behavior:
- Add a method "_ObjectProxy__expand__" to libPyROOT that is stored by name by the pickler used by the unpickler. The expand function takes a class name and a python string, which are turned into an object using TBufferFile.
- Add a "__reduce__" method to ObjectProxy, which turns ObjectProxy's into python strings through serialization done by TBufferFile. The python string is subsequently pickled.
Definition in file PyROOTPickle.h.
#include "GaudiKernel/Kernel.h"
#include "Python.h"
Go to the source code of this file.