Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 101 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)
 constructor
 
virtual ~RWebDisplayHandle ()=default
 required virtual destructor for correct cleanup at the end
 
const std::string & GetContent () const
 get content
 
const std::string & GetUrl () const
 returns url of start web display
 
void SetContent (const std::string &cont)
 set content
 

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
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
static std::unique_ptr< RWebDisplayHandleDisplay (const RWebDisplayArgs &args)
 Create web display.
 
static bool DisplayUrl (const std::string &url)
 Display provided url in configured web browser.
 
static bool ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600, const char *batch_file=nullptr)
 Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox.
 
- 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.
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays.
 
Inheritance diagram for ROOT::Experimental::RWebBrowserHandle:
[legend]

Member Typedef Documentation

◆ browser_process_id

Definition at line 106 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 113 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 118 of file RWebDisplayHandle.cxx.

◆ ~RWebBrowserHandle()

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

Definition at line 123 of file RWebDisplayHandle.cxx.

Member Data Documentation

◆ fHasPid

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

Definition at line 109 of file RWebDisplayHandle.cxx.

◆ fPid

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

Definition at line 110 of file RWebDisplayHandle.cxx.

◆ fTmpDir

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

temporary directory to delete at the end

Definition at line 108 of file RWebDisplayHandle.cxx.

  • gui/webdisplay/src/RWebDisplayHandle.cxx