Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
IOHandler.cxx File Reference
#include <Python.h>
#include <fcntl.h>
#include <unistd.h>
#include <string>
#include <iostream>
#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)
 

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 57 of file IOHandler.cxx.

◆ F_SETPIPE_SZ

#define F_SETPIPE_SZ   (F_LINUX_SPECIFIC_BASE + 7)

Definition at line 60 of file IOHandler.cxx.

Function Documentation

◆ InitCaptureImpl()

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

Definition at line 97 of file IOHandler.cxx.

◆ JupyROOTDeclarer()

PyObject * JupyROOTDeclarer ( PyObject ,
PyObject args 
)

Definition at line 201 of file IOHandler.cxx.

◆ JupyROOTDeclarerImpl()

bool JupyROOTDeclarerImpl ( const char *  code)

Definition at line 177 of file IOHandler.cxx.

◆ JupyROOTExecutor()

PyObject * JupyROOTExecutor ( PyObject ,
PyObject args 
)

Definition at line 190 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Clear()

PyObject * JupyROOTExecutorHandler_Clear ( PyObject ,
PyObject  
)

Definition at line 212 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Ctor()

PyObject * JupyROOTExecutorHandler_Ctor ( PyObject ,
PyObject  
)

Definition at line 218 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Dtor()

PyObject * JupyROOTExecutorHandler_Dtor ( PyObject ,
PyObject  
)

Definition at line 259 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_EndCapture()

PyObject * JupyROOTExecutorHandler_EndCapture ( PyObject ,
PyObject  
)

Definition at line 235 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_GetStderr()

PyObject * JupyROOTExecutorHandler_GetStderr ( PyObject ,
PyObject  
)

Definition at line 253 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_GetStdout()

PyObject * JupyROOTExecutorHandler_GetStdout ( PyObject ,
PyObject  
)

Definition at line 247 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_InitCapture()

PyObject * JupyROOTExecutorHandler_InitCapture ( PyObject ,
PyObject  
)

Definition at line 241 of file IOHandler.cxx.

◆ JupyROOTExecutorHandler_Poll()

PyObject * JupyROOTExecutorHandler_Poll ( PyObject ,
PyObject  
)

Definition at line 229 of file IOHandler.cxx.

◆ JupyROOTExecutorImpl()

bool JupyROOTExecutorImpl ( const char *  code)

Definition at line 157 of file IOHandler.cxx.

◆ PollImpl()

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

Definition at line 67 of file IOHandler.cxx.

Variable Documentation

◆ JupyROOTExecutorHandler_ptr

JupyROOTExecutorHandler* JupyROOTExecutorHandler_ptr = nullptr

Definition at line 155 of file IOHandler.cxx.

◆ MAX_PIPE_SIZE

constexpr long MAX_PIPE_SIZE = 1048575
constexpr

Definition at line 63 of file IOHandler.cxx.