ATLAS Offline Software
Loading...
Searching...
No Matches
Utility.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4*/
11
12
13#ifndef ROOTUTILS_UTILITY_H
14#define ROOTUTILS_UTILITY_H
15
16
17#include "Python.h"
18#include "TPython.h"
19#include "TClass.h"
20
21
22#include "CPyCppyy/PyException.h"
23namespace RootUtils {
24 using PyException = CPyCppyy::PyException;
25}
26
27
28
29namespace RootUtils {
30
31
32int GetBuffer( PyObject* pyobject, char tc, int size, void*& buf, Bool_t check = kTRUE );
33TClass* objectIsA (PyObject* obj);
34bool setOwnership (PyObject* obj, bool flag);
35
36
37}
38
39
40#endif // not ROOTUTILS_UTILITY_H
_object PyObject
static Double_t tc
bool setOwnership(PyObject *obj, bool flag)
Definition Utility.cxx:141
CPyCppyy::PyException PyException
Definition Utility.h:24
int GetBuffer(PyObject *pyobject, char tc, int size, void *&buf, Bool_t check)
Definition Utility.cxx:26
TClass * objectIsA(PyObject *obj)
Definition Utility.cxx:103