Loading [MathJax]/extensions/MathMenu.js
Go to the documentation of this file.
50 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
54 const bool createIf =
true )
override;
73 if ( !s_appmgrInstance ) {
75 s_svclocInstance = s_appmgrInstance;
77 return s_appmgrInstance.
get();
107 if ( !s_svclocInstance ) {
110 s_svclocInstance = iappmgr;
111 if ( s_svclocInstance )
return s_svclocInstance;
124 return s_svclocInstance;
132 s_svclocInstance = newInstance;
133 s_appmgrInstance = s_svclocInstance;
142 s_appmgrInstance = newInstance;
143 s_svclocInstance = s_appmgrInstance;
154 IService* is = Service::Factory::create( factname,
name,
nullptr ).release();
156 IAlgorithm* ia = Algorithm::Factory::create( factname,
name,
nullptr ).release();
159 void* libHandle =
nullptr;
161 ii = ObjFactory::create( factname,
nullptr ).
release();
163 is = Service::Factory::create( factname,
name,
nullptr ).release();
165 ia = Algorithm::Factory::create( factname,
name,
nullptr ).release();
197 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
201 if ( s_appmgrInstance ) {
202 sc = s_svclocInstance->getService(
typeName, iid, pinterface );
204 pinterface = s_bootInterface.
get();
209 const bool createIf ) {
211 if ( s_appmgrInstance ) {
212 sc = s_svclocInstance->getService(
typeName, svc, createIf );
214 svc = s_bootService.
get();
221 return s_appmgrInstance ? s_svclocInstance->getServices() : s_bootServices;
224 return s_appmgrInstance && s_svclocInstance->existsService(
name );
228 return s_appmgrInstance ? s_svclocInstance->service(
typeName, createIf ) : s_bootService;
231 #ifdef GAUDI_HASCLASSVISIBILITY
232 # pragma GCC visibility push( default )
236 #define PyHelper( x ) py_bootstrap_##x
240 return svcloc ? svcloc->service<
IInterface>( std::string_view{
name } ).
get() :
nullptr;
244 return prop && prop->setProperty(
name, value ).isSuccess();
248 if ( !prop )
return nullptr;
251 value = prop->getProperty(
name ).toString();
252 return value.
c_str();
259 return ui && ui->configure().isSuccess();
265 return ep && ep->executeRun( maxevt ).isSuccess();
268 #define PyFSMHelper( s ) \
269 bool py_bootstrap_fsm_##s( IInterface* i ) { \
270 auto fsm = SmartIF<IStateful>( i ); \
271 return fsm && fsm->s().isSuccess(); \
283 #ifdef GAUDI_HASCLASSVISIBILITY
284 # pragma GCC visibility pop
GAUDI_API IInterface * createInstance(const std::string &name, const std::string &factname, const std::string &ddlname)
GAUDI_API IAppMgrUI * createApplicationMgr(const std::string &dllname, const std::string &factname)
GAUDI_API unsigned long loadDynamicLib(const std::string &name, ImageHandle *handle)
Load dynamic link library.
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
def configure(gaudi=None)
bool py_bootstrap_app_run(IInterface *i, int maxevt)
IInterface *PyHelper() getService(IInterface *app, char *name)
bool PyHelper() configureApp(IInterface *app)
GAUDI_API IAppMgrUI * createApplicationMgrEx(const std::string &dllname, const std::string &factname)
SmartIF< IService > & service(const Gaudi::Utils::TypeNameString &typeName, const bool createIf=true) override
Returns a smart pointer to a service.
GAUDI_API ISvcLocator * svcLocator()
Helper class to parse a string of format "type/name".
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
GAUDI_API ISvcLocator * setInstance(ISvcLocator *newInstance)
Set new instance of service locator.
Header file for std:chrono::duration-based Counters.
int PyHelper() ROOT_VERSION_CODE()
Base class used to implement the interfaces.
SmartIF< IFace > make_SmartIF(IFace *iface)
TYPE * get() const
Get interface pointer.
std::string typeName(const std::type_info &typ)
StatusCode getService(const Gaudi::Utils::TypeNameString &typeName, const InterfaceID &iid, IInterface *&pinterface) override
constexpr static const auto FAILURE
const char *PyHelper() getProperty(IInterface *p, char *name)
virtual unsigned long release()=0
Release Interface instance.
bool existsService(std::string_view name) const override
GAUDI_API const std::string getLastErrorString()
Get last system error as string.
void PyHelper() setOption(IInterface *app, char *key, char *value)
const std::list< IService * > & getServices() const override