Specialized handle to hold information about running browser process Used to correctly cleanup all processes and temporary directories.
Definition at line 100 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< RWebDisplayHandle > | Display (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) |
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. | |
|
private |
Definition at line 105 of file RWebDisplayHandle.cxx.
|
inline |
Definition at line 112 of file RWebDisplayHandle.cxx.
|
inline |
Definition at line 117 of file RWebDisplayHandle.cxx.
|
inlinevirtual |
Definition at line 122 of file RWebDisplayHandle.cxx.
|
private |
Definition at line 108 of file RWebDisplayHandle.cxx.
|
private |
Definition at line 109 of file RWebDisplayHandle.cxx.
|
private |
temporary directory to delete at the end
Definition at line 107 of file RWebDisplayHandle.cxx.