39 PyErr_SetString(PyExc_TypeError,
40 "T(Directory)File::Get must be called with a T(Directory)File instance as first argument");
45 PyErr_SetString(PyExc_ReferenceError,
"attempt to access a null-pointer");
51 auto key = dirf->GetKey(namecycle);
53 void *addr = dirf->GetObjectChecked(namecycle, key->GetClassName());
57 void *addr = dirf->Get(namecycle);
71 PyObject *pyclass = PyTuple_GetItem(args, 0);
#define CPyCppyy_PyText_AsString
TClass * GetTClass(const CPyCppyy::CPPInstance *pyobj)
PyObject * TDirectoryFileGetPyz(CPPInstance *self, PyObject *pynamecycle)
Allow access to objects through the method Get() This concerns both TDirectoryFile and TFile,...
void * DynamicCast(const TClass *base, void *obj, Bool_t up=kTRUE)
Cast obj of this class type up to baseclass cl if up is true.
A ROOT file is structured in Directories (like a file system).
bool AddToClass(PyObject *pyclass, const char *label, PyCFunction cfunc, int flags=METH_VARARGS)
PyObject * BindCppObjectNoCast(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
bool CPPInstance_Check(T *object)
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
RPY_EXPORTED TCppScope_t GetScope(const std::string &scope_name)
PyObject * AddTDirectoryFileGetPyz(PyObject *self, PyObject *args)
Add pythonisation of TDirectoryFile::Get()