Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
IOHandler.cxx File Reference
#include <Python.h>
#include <fcntl.h>
#include <unistd.h>
#include <cstdlib>
#include <string>
#include <iostream>
#include "TClassEdit.h"
#include "TError.h"
#include "TInterpreter.h"
Include dependency graph for IOHandler.cxx:
This graph shows which files directly or indirectly include this file:

Classes

class  JupyROOTExecutorHandler
 

Macros

#define F_LINUX_SPECIFIC_BASE   1024
 
#define F_SETPIPE_SZ   (F_LINUX_SPECIFIC_BASE + 7)
 

Functions

static void InitCaptureImpl (int &savedStdStream, int *pipeHandle, int FILENO)
 
PyObjectJupyROOTDeclarer (PyObject *, PyObject *args)
 
bool JupyROOTDeclarerImpl (const char *code)
 
PyObjectJupyROOTExecutor (PyObject *, PyObject *args)
 
PyObjectJupyROOTExecutorHandler_Clear (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_Ctor (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_Dtor (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_EndCapture (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_GetStderr (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_GetStdout (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_InitCapture (PyObject *, PyObject *)
 
PyObjectJupyROOTExecutorHandler_Poll (PyObject *, PyObject *)
 
bool JupyROOTExecutorImpl (const char *code)
 
static void PollImpl (FILE *stdStream, int *pipeHandle, std::string &pipeContent)
 
static void ReportCaughtException (const char *location, const std::exception &e)
 

Variables

JupyROOTExecutorHandlerJupyROOTExecutorHandler_ptr = nullptr
 
constexpr long MAX_PIPE_SIZE = 1048575
 

Macro Definition Documentation

◆ F_LINUX_SPECIFIC_BASE

#define F_LINUX_SPECIFIC_BASE   1024

Definition at line 60 of file IOHandler.cxx.

◆ F_SETPIPE_SZ

#define F_SETPIPE_SZ   (F_LINUX_SPECIFIC_BASE + 7)

Definition at line 63 of file IOHandler.cxx.

Function Documentation

◆ InitCaptureImpl()

static void InitCaptureImpl ( int & savedStdStream,
int * pipeHandle,
int FILENO )
static

Definition at line 100 of file IOHandler.cxx.

◆ JupyROOTDeclarer()

PyObject * JupyROOTDeclarer ( PyObject * ,
PyObject * args )

Definition at line 220 of file IOHandler.cxx.

◆ JupyROOTDeclarerImpl()

bool JupyROOTDeclarerImpl ( const char * code)

Definition at line 194 of file IOHandler.cxx.

◆ JupyROOTExecutor()

PyObject * JupyROOTExecutor ( PyObject * ,
PyObject * args )

Definition at line 209 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Clear()

PyObject * JupyROOTExecutorHandler_Clear ( PyObject * ,
PyObject *  )

Definition at line 231 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Ctor()

PyObject * JupyROOTExecutorHandler_Ctor ( PyObject * ,
PyObject *  )

Definition at line 237 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Dtor()

PyObject * JupyROOTExecutorHandler_Dtor ( PyObject * ,
PyObject *  )

Definition at line 278 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_EndCapture()

PyObject * JupyROOTExecutorHandler_EndCapture ( PyObject * ,
PyObject *  )

Definition at line 254 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_GetStderr()

PyObject * JupyROOTExecutorHandler_GetStderr ( PyObject * ,
PyObject *  )

Definition at line 272 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_GetStdout()

PyObject * JupyROOTExecutorHandler_GetStdout ( PyObject * ,
PyObject *  )

Definition at line 266 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_InitCapture()

PyObject * JupyROOTExecutorHandler_InitCapture ( PyObject * ,
PyObject *  )

Definition at line 260 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Poll()

PyObject * JupyROOTExecutorHandler_Poll ( PyObject * ,
PyObject *  )

Definition at line 248 of file IOHandler.cxx.

◆ JupyROOTExecutorImpl()

bool JupyROOTExecutorImpl ( const char * code)

Definition at line 172 of file IOHandler.cxx.

◆ PollImpl()

static void PollImpl ( FILE * stdStream,
int * pipeHandle,
std::string & pipeContent )
static

Definition at line 70 of file IOHandler.cxx.

◆ ReportCaughtException()

static void ReportCaughtException ( const char * location,
const std::exception & e )
static

Definition at line 163 of file IOHandler.cxx.

Variable Documentation

◆ JupyROOTExecutorHandler_ptr

JupyROOTExecutorHandler* JupyROOTExecutorHandler_ptr = nullptr

Definition at line 158 of file IOHandler.cxx.

◆ MAX_PIPE_SIZE

constexpr long MAX_PIPE_SIZE = 1048575
constexpr

Definition at line 66 of file IOHandler.cxx.