51 if (!h)
return nullptr;
55 auto sym = dlsym(h,
"GSystemDynamicFactory");
56 if (!sym)
return nullptr;
58 auto func =
reinterpret_cast<fptr
>(sym);
Optional plugin interface for dynamically-loaded system factories.
virtual void loadSystem(GSystem *s, int verbosity)=0
Load a system with an explicit verbosity.
virtual ~GSystemDynamicFactory()=default
static GSystemDynamicFactory * instantiate(const dlhandle h, std::shared_ptr< GOptions > g)
Instantiate a dynamic factory from a shared-library handle.
Represents a single detector system (e.g., calorimeter, tracker).