Warning, file /include/root/TPython.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TPython
0013 #define ROOT_TPython
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "TPyReturn.h"
0025
0026
0027 #include "TObject.h"
0028
0029 class TPython {
0030
0031 private:
0032 static Bool_t Initialize();
0033
0034 public:
0035
0036 static Bool_t Import(const char *name);
0037
0038
0039 static void LoadMacro(const char *name);
0040
0041
0042 static void ExecScript(const char *name, int argc = 0, const char **argv = nullptr);
0043
0044
0045 static Bool_t Exec(const char *cmd);
0046
0047
0048 static const TPyReturn Eval(const char *expr);
0049
0050
0051 static Bool_t Bind(TObject *object, const char *label);
0052
0053
0054 static void Prompt();
0055
0056
0057 static Bool_t CPPInstance_Check(PyObject *pyobject);
0058 static Bool_t CPPInstance_CheckExact(PyObject *pyobject);
0059
0060
0061 static Bool_t CPPOverload_Check(PyObject *pyobject);
0062 static Bool_t CPPOverload_CheckExact(PyObject *pyobject);
0063
0064
0065 static void *CPPInstance_AsVoidPtr(PyObject *pyobject);
0066
0067
0068 static PyObject *CPPInstance_FromVoidPtr(void *addr, const char *classname, Bool_t python_owns = kFALSE);
0069
0070 virtual ~TPython() {}
0071 ClassDef(TPython, 0)
0072 };
0073
0074 #endif