Logo ROOT  
Reference Guide
ROOT::Experimental::RWebBrowserHandle Class Reference

Specialized handle to hold information about running browser process Used to correctly cleanup all processes and temporary directories.

Definition at line 91 of file RWebDisplayHandle.cxx.

Public Member Functions

 RWebBrowserHandle (const std::string &url, const std::string &tmpdir, browser_process_id pid)
 
 RWebBrowserHandle (const std::string &url, const std::string &tmpdir, const std::string &dump)
 
virtual ~RWebBrowserHandle ()
 
- Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
 RWebDisplayHandle (const std::string &url)
 
virtual ~RWebDisplayHandle ()=default
 
const std::string & GetContent () const
 
const std::string & GetUrl () const
 
void SetContent (const std::string &cont)
 

Private Types

typedef pid_t browser_process_id
 

Private Attributes

bool fHasPid {false}
 
browser_process_id fPid
 
std::string fTmpDir
 temporary directory to delete at the end More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
static std::unique_ptr< RWebDisplayHandleDisplay (const RWebDisplayArgs &args)
 Create web display. More...
 
static bool DisplayUrl (const std::string &url)
 Display provided url in configured web browser. More...
 
static bool ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600)
 Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome. More...
 
- Static Protected Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
static std::unique_ptr< Creator > & FindCreator (const std::string &name, const std::string &libname="")
 Search for specific browser creator If not found, try to add one. More...
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays. More...
 
Inheritance diagram for ROOT::Experimental::RWebBrowserHandle:
[legend]

Member Typedef Documentation

◆ browser_process_id

Definition at line 96 of file RWebDisplayHandle.cxx.

Constructor & Destructor Documentation

◆ RWebBrowserHandle() [1/2]

ROOT::Experimental::RWebBrowserHandle::RWebBrowserHandle ( const std::string &  url,
const std::string &  tmpdir,
const std::string &  dump 
)
inline

Definition at line 103 of file RWebDisplayHandle.cxx.

◆ RWebBrowserHandle() [2/2]

ROOT::Experimental::RWebBrowserHandle::RWebBrowserHandle ( const std::string &  url,
const std::string &  tmpdir,
browser_process_id  pid 
)
inline

Definition at line 108 of file RWebDisplayHandle.cxx.

◆ ~RWebBrowserHandle()

virtual ROOT::Experimental::RWebBrowserHandle::~RWebBrowserHandle ( )
inlinevirtual

Definition at line 113 of file RWebDisplayHandle.cxx.

Member Data Documentation

◆ fHasPid

bool ROOT::Experimental::RWebBrowserHandle::fHasPid {false}
private

Definition at line 99 of file RWebDisplayHandle.cxx.

◆ fPid

browser_process_id ROOT::Experimental::RWebBrowserHandle::fPid
private

Definition at line 100 of file RWebDisplayHandle.cxx.

◆ fTmpDir

std::string ROOT::Experimental::RWebBrowserHandle::fTmpDir
private

temporary directory to delete at the end

Definition at line 98 of file RWebDisplayHandle.cxx.


The documentation for this class was generated from the following file: