17static int LoadCanvasPainterLibraryOnce() {
18 static int loadResult =
gSystem->
Load(
"libROOTCanvasPainter");
20 R__ERROR_HERE(
"Gpad") <<
"Loading of libROOTCanvasPainter failed!";
23static void LoadCanvasPainterLibrary() {
24 static int loadResult = LoadCanvasPainterLibraryOnce();
32RVirtualCanvasPainter::~RVirtualCanvasPainter() =
default;
34std::unique_ptr<RVirtualCanvasPainter::Generator> &RVirtualCanvasPainter::GetGenerator()
37 static std::unique_ptr<Generator> generator;
44 LoadCanvasPainterLibrary();
46 R__ERROR_HERE(
"Gpad") <<
"RVirtualCanvasPainter::Generator failed to register!";
47 throw std::runtime_error(
"RVirtualCanvasPainter::Generator failed to initialize");
#define R__ERROR_HERE(GROUP)
typedef void((*Func_t)())
R__EXTERN TSystem * gSystem
virtual ~Generator()
Default destructor.
static std::unique_ptr< Generator > & GetGenerator()
generator getter
static std::unique_ptr< RVirtualCanvasPainter > Create(RCanvas &canv)
Loads the plugin that implements this class.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.