The Gaudi Framework  v30r4 (9b837755)
MultiStoreSvc Class Reference

Data service base class. More...

Inheritance diagram for MultiStoreSvc:
Collaboration diagram for MultiStoreSvc:

Classes

struct  tagROOT
 Root type (address or object) More...
 

Public Member Functions

CLID rootCLID () const override
 IDataManagerSvc: Accessor for root event CLID. More...
 
const std::stringrootName () const override
 Name for root Event. More...
 
StatusCode registerAddress (boost::string_ref path, ADDRESS *pAddr) override
 IDataManagerSvc: Register object address with the data store. More...
 
StatusCode registerAddress (IRegistry *parent, boost::string_ref path, ADDRESS *pAddr) override
 IDataManagerSvc: Register object address with the data store. More...
 
StatusCode unregisterAddress (boost::string_ref path) override
 IDataManagerSvc: Unregister object address from the data store. More...
 
StatusCode unregisterAddress (IRegistry *pParent, boost::string_ref path) override
 IDataManagerSvc: Unregister object address from the data store. More...
 
StatusCode objectLeaves (const OBJECT *pObject, std::vector< IRegistry * > &leaves) override
 Explore the object store: retrieve all leaves attached to the object. More...
 
StatusCode objectLeaves (const IRegistry *pObject, std::vector< IRegistry * > &leaves) override
 Explore the object store: retrieve all leaves attached to the object. More...
 
StatusCode objectParent (const OBJECT *pObject, IRegistry *&refpParent) override
 IDataManagerSvc: Explore the object store: retrieve the object's parent. More...
 
StatusCode objectParent (const IRegistry *pObject, IRegistry *&refpParent) override
 IDataManagerSvc: Explore the object store: retrieve the object's parent. More...
 
StatusCode clearSubTree (boost::string_ref path) override
 Remove all data objects below the sub tree identified. More...
 
StatusCode clearSubTree (OBJECT *pObject) override
 Remove all data objects below the sub tree identified. More...
 
StatusCode clearStore () override
 IDataManagerSvc: Remove all data objects in the data store. More...
 
StatusCode traverseSubTree (boost::string_ref path, AGENT *pAgent) override
 Analyze by traversing all data objects below the sub tree. More...
 
StatusCode traverseSubTree (OBJECT *pObject, AGENT *pAgent) override
 IDataManagerSvc: Analyze by traversing all data objects below the sub tree. More...
 
StatusCode traverseTree (AGENT *pAgent) override
 IDataManagerSvc: Analyze by traversing all data objects in the data store. More...
 
StatusCode setRoot (std::string path, OBJECT *pObj) override
 Initialize data store for new event by giving new event path and root object. More...
 
StatusCode setRoot (std::string path, ADDRESS *pAddr) override
 Initialize data store for new event by giving new event path and address of root object. More...
 
StatusCode setDataLoader (IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc=nullptr) override
 IDataManagerSvc: Pass a default data loader to the service. More...
 
StatusCode addPreLoadItem (const DataStoreItem &item) override
 Add an item to the preload list. More...
 
StatusCode removePreLoadItem (const DataStoreItem &item) override
 Remove an item from the preload list. More...
 
StatusCode resetPreLoad () override
 Clear the preload list. More...
 
StatusCode preLoad () override
 load all preload items of the list More...
 
StatusCode registerObject (boost::string_ref parent, boost::string_ref obj, OBJECT *pObj) override
 Register object with the data store. More...
 
StatusCode registerObject (OBJECT *parent, boost::string_ref obj, OBJECT *pObj) override
 Register object with the data store. More...
 
StatusCode unregisterObject (boost::string_ref path) override
 Unregister object from the data store. More...
 
StatusCode unregisterObject (OBJECT *pObj) override
 Unregister object from the data store. More...
 
StatusCode unregisterObject (OBJECT *pObj, boost::string_ref path) override
 Unregister object from the data store. More...
 
StatusCode retrieveObject (IRegistry *parent, boost::string_ref path, OBJECT *&pObj) override
 Retrieve object from data store. More...
 
StatusCode findObject (boost::string_ref path, OBJECT *&pObj) override
 Find object identified by its full path in the data store. More...
 
StatusCode findObject (IRegistry *parent, boost::string_ref path, OBJECT *&pObj) override
 Find object identified by its full path in the data store. More...
 
StatusCode linkObject (IRegistry *from, boost::string_ref objPath, OBJECT *to) override
 Add a link to another object. More...
 
StatusCode linkObject (boost::string_ref fullPath, OBJECT *to) override
 Add a link to another object. More...
 
StatusCode unlinkObject (IRegistry *from, boost::string_ref objPath) override
 Remove a link to another object. More...
 
StatusCode unlinkObject (OBJECT *from, boost::string_ref objPath) override
 Remove a link to another object. More...
 
StatusCode unlinkObject (boost::string_ref path) override
 Remove a link to another object. More...
 
StatusCode updateObject (IRegistry *pDirectory) override
 Update object identified by its directory entry. More...
 
StatusCode updateObject (OBJECT *pObj) override
 Update object. More...
 
StatusCode create (CSTR &nam, CSTR &typ) override
 Create a partition object. The name identifies the partition uniquely. More...
 
StatusCode create (CSTR &nam, CSTR &typ, IInterface *&pPartition) override
 Create a partition object. The name identifies the partition uniquely. More...
 
StatusCode drop (CSTR &nam) override
 Drop a partition object. The name identifies the partition uniquely. More...
 
StatusCode drop (IInterface *pPartition) override
 Drop a partition object. The name identifies the partition uniquely. More...
 
StatusCode activate (CSTR &nam) override
 Activate a partition object. The name identifies the partition uniquely. More...
 
StatusCode activate (IInterface *pPartition) override
 Activate a partition object. More...
 
StatusCode get (CSTR &nam, IInterface *&pPartition) const override
 Access a partition object. The name identifies the partition uniquely. More...
 
StatusCode activePartition (std::string &nam, IInterface *&pPartition) const override
 Access the active partition object. More...
 
StatusCode attachServices ()
 
StatusCode detachServices ()
 
StatusCode initialize () override
 Service initialisation. More...
 
StatusCode reinitialize () override
 Service initialisation. More...
 
StatusCode finalize () override
 Service initialisation. More...
 
 ~MultiStoreSvc () override
 Standard Destructor. More...
 
StatusCode preparePartitions ()
 Prepare partition for usage. More...
 
StatusCode clearPartitions ()
 Clear all partitions. More...
 
StatusCode makePartitions ()
 Create all partitions according to job options. More...
 
- Public Member Functions inherited from extends< Service, IDataProviderSvc, IDataManagerSvc, IPartitionControl >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from Service
const std::stringname () const override
 Retrieve name of the service. More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service. More...
 
StatusCode sysStart () override
 Initialize Service. More...
 
StatusCode sysStop () override
 Initialize Service. More...
 
StatusCode sysFinalize () override
 Finalize Service. More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor. More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator. More...
 
StatusCode setProperties ()
 Method for setting declared properties to the values specified for the job. More...
 
template<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
 Declare used tool. More...
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p) override
 set the property form another property More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const std::string &n, const std::string &v) override
 set the property from name and the value More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (const std::string &name) const override
 get the property by name More...
 
StatusCode getProperty (const std::string &n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (const std::string &name) const override
 Return true if we have a property with the given name. More...
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 
MSG::Level outputLevel () const
 Backward compatibility function for getting the output level. More...
 
- Public Member Functions inherited from CommonMessagingBase
virtual ~CommonMessagingBase ()=default
 Virtual destructor. More...
 
const SmartIF< IMessageSvc > & msgSvc () const
 The standard message service. More...
 
MsgStreammsgStream () const
 Return an uninitialized MsgStream. More...
 
MsgStreammsgStream (const MSG::Level level) const
 Predefined configurable message stream for the efficient printouts. More...
 
MsgStreamalways () const
 shortcut for the method msgStream(MSG::ALWAYS) More...
 
MsgStreamfatal () const
 shortcut for the method msgStream(MSG::FATAL) More...
 
MsgStreamerr () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamerror () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamwarning () const
 shortcut for the method msgStream(MSG::WARNING) More...
 
MsgStreaminfo () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MsgStreamdebug () const
 shortcut for the method msgStream(MSG::DEBUG) More...
 
MsgStreamverbose () const
 shortcut for the method msgStream(MSG::VERBOSE) More...
 
MsgStreammsg () const
 shortcut for the method msgStream(MSG::INFO) More...
 

Protected Types

typedef std::vector< std::stringPartitionDefs
 
typedef std::map< std::string, Partition > Partitions
 

Protected Member Functions

template<typename Fun >
StatusCode fwd (Fun f)
 
- Protected Member Functions inherited from Service
 ~Service () override
 Standard Destructor. More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
Gaudi::Details::PropertyBaseproperty (const std::string &name) const
 
- Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 

Protected Attributes

Gaudi::Property< CLIDm_rootCLID {this, "RootCLID", 110, "CLID of root entry"}
 
Gaudi::Property< std::stringm_rootName {this, "RootName", "/Event", "name of root entry"}
 
Gaudi::Property< PartitionDefsm_partitionDefs {this, "Partitions", {}, "datastore partition definitions"}
 
Gaudi::Property< std::stringm_loader {this, "DataLoader", "EventPersistencySvc", "data loader name"}
 
Gaudi::Property< std::stringm_defaultPartition {this, "DefaultPartition", "Default", "default partition name"}
 
SmartIF< IConversionSvcm_dataLoader
 Pointer to data loader service. More...
 
SmartIF< IAddressCreatorm_addrCreator
 Reference to address creator. More...
 
struct MultiStoreSvc::tagROOT m_root
 
Partition m_current
 Current partition. More...
 
Partitions m_partitions
 Datastore partitions. More...
 
- Protected Attributes inherited from Service
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
Gaudi::Property< int > m_outputLevel {this, "OutputLevel", MSG::NIL, "output level"}
 
Gaudi::Property< bool > m_auditInit {this, "AuditServices", false, "[[deprecated]] unused"}
 
Gaudi::Property< bool > m_auditorInitialize {this, "AuditInitialize", false, "trigger auditor on initialize()"}
 
Gaudi::Property< bool > m_auditorStart {this, "AuditStart", false, "trigger auditor on start()"}
 
Gaudi::Property< bool > m_auditorStop {this, "AuditStop", false, "trigger auditor on stop()"}
 
Gaudi::Property< bool > m_auditorFinalize {this, "AuditFinalize", false, "trigger auditor on finalize()"}
 
Gaudi::Property< bool > m_auditorReinitialize {this, "AuditReinitialize", false, "trigger auditor on reinitialize()"}
 
Gaudi::Property< bool > m_auditorRestart {this, "AuditRestart", false, "trigger auditor on restart()"}
 
SmartIF< IAuditorSvcm_pAuditorSvc
 Auditor Service. More...
 

Additional Inherited Members

- Public Types inherited from extends< Service, IDataProviderSvc, IDataManagerSvc, IPartitionControl >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from Service
using Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 

Detailed Description

Data service base class.

A data service manages the transient data stores and implements the IDataProviderSvc, the IDataManagerSvc and the IPartitionControl interfaces.

Author
Markus Frank
Sebastien Ponce
Version
1.0

Definition at line 101 of file MultiStoreSvc.cpp.

Member Typedef Documentation

Definition at line 104 of file MultiStoreSvc.cpp.

typedef std::map<std::string, Partition> MultiStoreSvc::Partitions
protected

Definition at line 105 of file MultiStoreSvc.cpp.

Constructor & Destructor Documentation

MultiStoreSvc::~MultiStoreSvc ( )
inlineoverride

Standard Destructor.

Definition at line 538 of file MultiStoreSvc.cpp.

539  {
540  setDataLoader( nullptr ).ignore();
541  resetPreLoad().ignore();
542  clearStore().ignore();
544  }
StatusCode clearStore() override
IDataManagerSvc: Remove all data objects in the data store.
StatusCode clearPartitions()
Clear all partitions.
StatusCode resetPreLoad() override
Clear the preload list.
const StatusCode & ignore() const
Ignore/check StatusCode.
Definition: StatusCode.h:165
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.

Member Function Documentation

StatusCode MultiStoreSvc::activate ( CSTR nam)
inlineoverride

Activate a partition object. The name identifies the partition uniquely.

Definition at line 404 of file MultiStoreSvc.cpp.

405  {
406  auto i = m_partitions.find( nam );
407  if ( i != m_partitions.end() ) {
408  m_current = i->second;
409  return StatusCode::SUCCESS;
410  }
411  m_current = {};
413  }
Partitions m_partitions
Datastore partitions.
T end(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
Partition m_current
Current partition.
T find(T...args)
StatusCode MultiStoreSvc::activate ( IInterface pPartition)
inlineoverride

Activate a partition object.

Definition at line 416 of file MultiStoreSvc.cpp.

417  {
418  auto provider = SmartIF<IDataProviderSvc>( pPartition );
419  m_current = Partition();
420  if ( !provider ) return IInterface::Status::NO_INTERFACE;
422  [&]( Partitions::const_reference p ) { return p.second.dataProvider == provider; } );
424  m_current = i->second;
425  return StatusCode::SUCCESS;
426  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
T end(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
Partition m_current
Current partition.
T find_if(T...args)
T begin(T...args)
StatusCode MultiStoreSvc::activePartition ( std::string nam,
IInterface *&  pPartition 
) const
inlineoverride

Access the active partition object.

Definition at line 441 of file MultiStoreSvc.cpp.

442  {
443  if ( m_current.dataProvider ) {
444  nam = m_current.name;
445  pPartition = m_current.dataProvider;
446  return StatusCode::SUCCESS;
447  }
448  nam.clear();
449  pPartition = nullptr;
451  }
T clear(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
Partition m_current
Current partition.
StatusCode MultiStoreSvc::addPreLoadItem ( const DataStoreItem item)
inlineoverride

Add an item to the preload list.

Definition at line 263 of file MultiStoreSvc.cpp.

264  {
265  return fwd( [&]( IDataProviderSvc& svc ) { return svc.addPreLoadItem( item ); } );
266  }
StatusCode fwd(Fun f)
virtual StatusCode addPreLoadItem(const DataStoreItem &item)=0
Add an item to the preload list.
Data provider interface definition.
StatusCode MultiStoreSvc::attachServices ( )
inline

Definition at line 453 of file MultiStoreSvc.cpp.

454  {
455  // Attach address creator facility
456  m_addrCreator = service( m_loader, true );
457  if ( !m_addrCreator ) {
458  error() << "Failed to retrieve data loader "
459  << "\"" << m_loader << "\"" << endmsg;
460  return StatusCode::FAILURE;
461  }
462  // Attach data loader facility
463  auto dataLoader = service<IConversionSvc>( m_loader, true );
464  if ( !dataLoader ) {
465  error() << "Failed to retrieve data loader "
466  << "\"" << m_loader << "\"" << endmsg;
467  return StatusCode::FAILURE;
468  }
469  auto sc = setDataLoader( dataLoader.get() );
470  if ( !sc.isSuccess() ) {
471  error() << "Failed to set data loader "
472  << "\"" << m_loader << "\"" << endmsg;
473  }
474  return sc;
475  }
constexpr static const auto FAILURE
Definition: StatusCode.h:88
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Gaudi::Property< std::string > m_loader
SmartIF< IAddressCreator > m_addrCreator
Reference to address creator.
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.
StatusCode service(const std::string &name, const T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn&#39;t already exist.
Definition: Service.h:84
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
StatusCode MultiStoreSvc::clearPartitions ( )
inline

Clear all partitions.

Definition at line 573 of file MultiStoreSvc.cpp.

574  {
575  for ( auto& i : m_partitions ) i.second.dataManager->clearStore().ignore();
576  m_partitions.clear();
577  return StatusCode::SUCCESS;
578  }
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
StatusCode MultiStoreSvc::clearStore ( )
inlineoverride

IDataManagerSvc: Remove all data objects in the data store.

Definition at line 192 of file MultiStoreSvc.cpp.

193  {
194  for ( auto& i : m_partitions ) {
195  i.second.dataManager->clearStore().ignore();
196  }
197  visit( m_root.root,
198  []( auto* p ) {
199  if ( p ) p->release();
200  },
201  []( boost::blank ) {} );
202  m_root.root = {};
203  m_root.path.clear();
204  return StatusCode::SUCCESS;
205  }
Partitions m_partitions
Datastore partitions.
struct MultiStoreSvc::tagROOT m_root
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
T clear(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
StatusCode MultiStoreSvc::clearSubTree ( boost::string_ref  path)
inlineoverride

Remove all data objects below the sub tree identified.

Definition at line 182 of file MultiStoreSvc.cpp.

183  {
184  return fwd( [&]( IDataManagerSvc& svc ) { return svc.clearSubTree( path ); } );
185  }
StatusCode fwd(Fun f)
virtual StatusCode clearSubTree(boost::string_ref sub_path)=0
Remove all data objects below the sub tree identified by its full path name.
StatusCode MultiStoreSvc::clearSubTree ( OBJECT pObject)
inlineoverride

Remove all data objects below the sub tree identified.

Definition at line 187 of file MultiStoreSvc.cpp.

188  {
189  return fwd( [&]( IDataManagerSvc& svc ) { return svc.clearSubTree( pObject ); } );
190  }
StatusCode fwd(Fun f)
virtual StatusCode clearSubTree(boost::string_ref sub_path)=0
Remove all data objects below the sub tree identified by its full path name.
StatusCode MultiStoreSvc::create ( CSTR nam,
CSTR typ 
)
inlineoverride

Create a partition object. The name identifies the partition uniquely.

Definition at line 358 of file MultiStoreSvc.cpp.

359  {
360  IInterface* pPartition = nullptr;
361  return create( nam, typ, pPartition );
362  }
StatusCode create(CSTR &nam, CSTR &typ) override
Create a partition object. The name identifies the partition uniquely.
Definition of the basic interface.
Definition: IInterface.h:277
StatusCode MultiStoreSvc::create ( CSTR nam,
CSTR typ,
IInterface *&  pPartition 
)
inlineoverride

Create a partition object. The name identifies the partition uniquely.

Fix-Me:
: In the old implementation the services were "unmanaged" (non-active)

Definition at line 364 of file MultiStoreSvc.cpp.

365  {
366  if ( get( nam, pPartition ).isSuccess() ) return IPartitionControl::Status::PARTITION_EXISTS;
368  auto isvc = serviceLocator()->service<IService>( typ );
369  if ( !isvc ) return IInterface::Status::NO_INTERFACE;
370  auto dataMgr = isvc.as<IDataManagerSvc>();
371  auto dataProv = isvc.as<IDataProviderSvc>();
372  if ( !dataMgr || !dataProv ) return IInterface::Status::NO_INTERFACE;
373  m_partitions.emplace( nam, Partition{dataProv, dataMgr, nam} );
374  return StatusCode::SUCCESS;
375  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
Data provider interface definition.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
Definition: ISvcLocator.h:79
General service interface definition.
Definition: IService.h:18
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
T emplace(T...args)
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:291
StatusCode MultiStoreSvc::detachServices ( )
inline

Definition at line 477 of file MultiStoreSvc.cpp.

478  {
481  return StatusCode::SUCCESS;
482  }
SmartIF< IConversionSvc > m_dataLoader
Pointer to data loader service.
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
SmartIF< IAddressCreator > m_addrCreator
Reference to address creator.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
Definition: SmartIF.h:92
StatusCode MultiStoreSvc::drop ( CSTR nam)
inlineoverride

Drop a partition object. The name identifies the partition uniquely.

Definition at line 378 of file MultiStoreSvc.cpp.

379  {
380  auto i = m_partitions.find( nam );
382  if ( i->second.dataManager == m_current.dataManager ) {
383  m_current = Partition();
384  }
385  i->second.dataManager->clearStore().ignore();
386  m_partitions.erase( i );
387  return StatusCode::SUCCESS;
388  }
Partitions m_partitions
Datastore partitions.
T end(T...args)
T erase(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
Partition m_current
Current partition.
T find(T...args)
StatusCode MultiStoreSvc::drop ( IInterface pPartition)
inlineoverride

Drop a partition object. The name identifies the partition uniquely.

Definition at line 391 of file MultiStoreSvc.cpp.

392  {
393  auto provider = SmartIF<IDataProviderSvc>( pPartition );
394  if ( !provider ) return IInterface::Status::NO_INTERFACE;
396  [&]( Partitions::const_reference p ) { return p.second.dataProvider == provider; } );
398  i->second.dataManager->clearStore().ignore();
399  m_partitions.erase( i );
400  return StatusCode::SUCCESS;
401  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
T end(T...args)
T erase(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
T find_if(T...args)
T begin(T...args)
StatusCode MultiStoreSvc::finalize ( )
inlineoverride

Service initialisation.

Definition at line 522 of file MultiStoreSvc.cpp.

523  {
524  setDataLoader( nullptr ).ignore();
525  clearStore().ignore();
527  m_current = Partition();
528  detachServices();
529  return Service::finalize();
530  }
StatusCode detachServices()
StatusCode clearStore() override
IDataManagerSvc: Remove all data objects in the data store.
StatusCode finalize() override
Definition: Service.cpp:173
StatusCode clearPartitions()
Clear all partitions.
Partition m_current
Current partition.
const StatusCode & ignore() const
Ignore/check StatusCode.
Definition: StatusCode.h:165
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.
StatusCode MultiStoreSvc::findObject ( boost::string_ref  path,
OBJECT *&  pObj 
)
inlineoverride

Find object identified by its full path in the data store.

Definition at line 313 of file MultiStoreSvc.cpp.

314  {
315  return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( path, pObj ); } );
316  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode retrieveObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
StatusCode MultiStoreSvc::findObject ( IRegistry parent,
boost::string_ref  path,
OBJECT *&  pObj 
)
inlineoverride

Find object identified by its full path in the data store.

Definition at line 318 of file MultiStoreSvc.cpp.

319  {
320  return fwd( [&]( IDataProviderSvc& svc ) { return svc.findObject( parent, path, pObj ); } );
321  }
StatusCode fwd(Fun f)
virtual StatusCode findObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Find object identified by its directory entry.
Data provider interface definition.
template<typename Fun >
StatusCode MultiStoreSvc::fwd ( Fun  f)
inlineprotected

Definition at line 129 of file MultiStoreSvc.cpp.

130  {
131  auto* svc = m_current.get<std::decay_t<detail::argument_t<Fun>>>();
132  return svc ? f( *svc ) : IDataProviderSvc::Status::INVALID_ROOT;
133  }
Data provider interface definition.
Partition m_current
Current partition.
StatusCode MultiStoreSvc::get ( CSTR nam,
IInterface *&  pPartition 
) const
inlineoverride

Access a partition object. The name identifies the partition uniquely.

Definition at line 429 of file MultiStoreSvc.cpp.

430  {
431  auto i = m_partitions.find( nam );
432  if ( i != m_partitions.end() ) {
433  pPartition = i->second.dataProvider;
434  return StatusCode::SUCCESS;
435  }
436  pPartition = nullptr;
438  }
Partitions m_partitions
Datastore partitions.
T end(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
T find(T...args)
StatusCode MultiStoreSvc::initialize ( )
inlineoverride

Service initialisation.

Definition at line 485 of file MultiStoreSvc.cpp.

486  {
487  // Nothing to do: just call base class initialisation
489  if ( !sc.isSuccess() ) return sc;
490  sc = makePartitions();
491  if ( !sc.isSuccess() ) {
492  error() << "Failed to connect to all store partitions." << endmsg;
493  return sc;
494  }
495  return attachServices();
496  }
StatusCode initialize() override
Definition: Service.cpp:63
bool isSuccess() const
Definition: StatusCode.h:287
StatusCode attachServices()
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
StatusCode makePartitions()
Create all partitions according to job options.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
StatusCode MultiStoreSvc::linkObject ( IRegistry from,
boost::string_ref  objPath,
OBJECT to 
)
inlineoverride

Add a link to another object.

Definition at line 323 of file MultiStoreSvc.cpp.

324  {
325  return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( from, objPath, to ); } );
326  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode linkObject(IRegistry *from, boost::string_ref objPath, DataObject *toObj)=0
Add a link to another object.
StatusCode MultiStoreSvc::linkObject ( boost::string_ref  fullPath,
OBJECT to 
)
inlineoverride

Add a link to another object.

Definition at line 328 of file MultiStoreSvc.cpp.

329  {
330  return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( fullPath, to ); } );
331  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode linkObject(IRegistry *from, boost::string_ref objPath, DataObject *toObj)=0
Add a link to another object.
StatusCode MultiStoreSvc::makePartitions ( )
inline

Create all partitions according to job options.

Definition at line 581 of file MultiStoreSvc.cpp.

582  {
583  using Parser = Gaudi::Utils::AttribStringParser;
584  std::string typ, nam;
586  for ( auto part : m_partitionDefs ) {
587  for ( auto attrib : Parser( std::move( part ) ) ) {
588  switch (::toupper( attrib.tag[0] ) ) {
589  case 'N':
590  nam = std::move( attrib.value );
591  break;
592  case 'T':
593  typ = std::move( attrib.value );
594  break;
595  }
596  }
597  StatusCode sc = create( nam, typ );
598  if ( !sc.isSuccess() ) return sc;
599  if ( m_defaultPartition.empty() ) m_defaultPartition = nam;
600  }
601  return StatusCode::SUCCESS;
602  }
Parse attribute strings allowing iteration over the various attributes.
StatusCode create(CSTR &nam, CSTR &typ) override
Create a partition object. The name identifies the partition uniquely.
bool isSuccess() const
Definition: StatusCode.h:287
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
StatusCode clearPartitions()
Clear all partitions.
Gaudi::Property< std::string > m_defaultPartition
T move(T...args)
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
const StatusCode & ignore() const
Ignore/check StatusCode.
Definition: StatusCode.h:165
Gaudi::Property< PartitionDefs > m_partitionDefs
void toupper(std::string &s)
StatusCode MultiStoreSvc::objectLeaves ( const OBJECT pObject,
std::vector< IRegistry * > &  leaves 
)
inlineoverride

Explore the object store: retrieve all leaves attached to the object.

Definition at line 162 of file MultiStoreSvc.cpp.

163  {
164  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectLeaves( pObject, leaves ); } );
165  }
virtual StatusCode objectLeaves(const DataObject *pObject, std::vector< IRegistry * > &refLeaves)=0
Explore the object store: retrieve all leaves attached to the object The object is identified by its ...
StatusCode fwd(Fun f)
StatusCode MultiStoreSvc::objectLeaves ( const IRegistry pObject,
std::vector< IRegistry * > &  leaves 
)
inlineoverride

Explore the object store: retrieve all leaves attached to the object.

Definition at line 167 of file MultiStoreSvc.cpp.

168  {
169  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectLeaves( pObject, leaves ); } );
170  }
virtual StatusCode objectLeaves(const DataObject *pObject, std::vector< IRegistry * > &refLeaves)=0
Explore the object store: retrieve all leaves attached to the object The object is identified by its ...
StatusCode fwd(Fun f)
StatusCode MultiStoreSvc::objectParent ( const OBJECT pObject,
IRegistry *&  refpParent 
)
inlineoverride

IDataManagerSvc: Explore the object store: retrieve the object's parent.

Definition at line 172 of file MultiStoreSvc.cpp.

173  {
174  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectParent( pObject, refpParent ); } );
175  }
StatusCode fwd(Fun f)
virtual StatusCode objectParent(const DataObject *pObject, IRegistry *&refpParent)=0
IDataManagerSvc: Explore the object store: retrieve the object&#39;s parent.
StatusCode MultiStoreSvc::objectParent ( const IRegistry pObject,
IRegistry *&  refpParent 
)
inlineoverride

IDataManagerSvc: Explore the object store: retrieve the object's parent.

Definition at line 177 of file MultiStoreSvc.cpp.

178  {
179  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectParent( pObject, refpParent ); } );
180  }
StatusCode fwd(Fun f)
virtual StatusCode objectParent(const DataObject *pObject, IRegistry *&refpParent)=0
IDataManagerSvc: Explore the object store: retrieve the object&#39;s parent.
StatusCode MultiStoreSvc::preLoad ( )
inlineoverride

load all preload items of the list

Definition at line 278 of file MultiStoreSvc.cpp.

279  {
280  return fwd( [&]( IDataProviderSvc& svc ) { return svc.preLoad(); } );
281  }
StatusCode fwd(Fun f)
virtual StatusCode preLoad()=0
Load all preload items of the list.
Data provider interface definition.
StatusCode MultiStoreSvc::preparePartitions ( )
inline

Prepare partition for usage.

Definition at line 547 of file MultiStoreSvc.cpp.

548  {
550  for ( auto& i : m_partitions ) {
551  StatusCode sc = visit( m_root.root,
552  [&]( ADDRESS* address ) -> StatusCode {
553  if ( !address ) return StatusCode::FAILURE;
554  ADDRESS* pAdd = nullptr;
555  ADDRESS* p = address;
556  auto sc =
557  m_addrCreator->createAddress( p->svcType(), p->clID(), p->par(), p->ipar(), pAdd );
558  return sc.isSuccess() ? i.second.dataManager->setRoot( m_root.path, pAdd ) : sc;
559  },
560  [&]( OBJECT* object ) -> StatusCode {
561  if ( object && object->clID() == CLID_DataObject ) {
562  return i.second.dataManager->setRoot( m_root.path, new DataObject() );
563  }
564  return StatusCode::FAILURE;
565  },
566  []( boost::blank ) -> StatusCode { return StatusCode::FAILURE; } );
567  if ( !sc.isSuccess() ) iret = sc;
568  }
569  return iret;
570  }
constexpr static const auto FAILURE
Definition: StatusCode.h:88
Partitions m_partitions
Datastore partitions.
struct MultiStoreSvc::tagROOT m_root
bool isSuccess() const
Definition: StatusCode.h:287
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
StatusCode MultiStoreSvc::registerAddress ( boost::string_ref  path,
ADDRESS pAddr 
)
inlineoverride

IDataManagerSvc: Register object address with the data store.

Definition at line 142 of file MultiStoreSvc.cpp.

143  {
144  return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( path, pAddr ); } );
145  }
StatusCode fwd(Fun f)
virtual StatusCode registerAddress(boost::string_ref fullPath, IOpaqueAddress *pAddress)=0
Register object address with the data store.
StatusCode MultiStoreSvc::registerAddress ( IRegistry parent,
boost::string_ref  path,
ADDRESS pAddr 
)
inlineoverride

IDataManagerSvc: Register object address with the data store.

Definition at line 147 of file MultiStoreSvc.cpp.

148  {
149  return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( parent, path, pAddr ); } );
150  }
StatusCode fwd(Fun f)
virtual StatusCode registerAddress(boost::string_ref fullPath, IOpaqueAddress *pAddress)=0
Register object address with the data store.
StatusCode MultiStoreSvc::registerObject ( boost::string_ref  parent,
boost::string_ref  obj,
OBJECT pObj 
)
inlineoverride

Register object with the data store.

Definition at line 283 of file MultiStoreSvc.cpp.

284  {
285  return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
286  }
StatusCode fwd(Fun f)
Data provider interface definition.
StatusCode registerObject(boost::string_ref fullPath, DataObject *pObject)
Register object with the data store.
StatusCode MultiStoreSvc::registerObject ( OBJECT parent,
boost::string_ref  obj,
OBJECT pObj 
)
inlineoverride

Register object with the data store.

Definition at line 288 of file MultiStoreSvc.cpp.

289  {
290  return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
291  }
StatusCode fwd(Fun f)
Data provider interface definition.
StatusCode registerObject(boost::string_ref fullPath, DataObject *pObject)
Register object with the data store.
StatusCode MultiStoreSvc::reinitialize ( )
inlineoverride

Service initialisation.

Definition at line 499 of file MultiStoreSvc.cpp.

500  {
502  if ( !sc.isSuccess() ) {
503  error() << "Enable to reinitialize base class" << endmsg;
504  return sc;
505  }
506  detachServices();
507  sc = attachServices();
508  if ( !sc.isSuccess() ) {
509  error() << "Failed to attach necessary services." << endmsg;
510  return sc;
511  }
512  sc = makePartitions();
513  if ( !sc.isSuccess() ) {
514  error() << "Failed to connect to store partitions." << endmsg;
515  return sc;
516  }
517  // return
518  return StatusCode::SUCCESS;
519  }
StatusCode detachServices()
bool isSuccess() const
Definition: StatusCode.h:287
StatusCode attachServices()
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
StatusCode reinitialize() override
Definition: Service.cpp:249
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
StatusCode makePartitions()
Create all partitions according to job options.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
StatusCode MultiStoreSvc::removePreLoadItem ( const DataStoreItem item)
inlineoverride

Remove an item from the preload list.

Definition at line 268 of file MultiStoreSvc.cpp.

269  {
270  return fwd( [&]( IDataProviderSvc& svc ) { return svc.removePreLoadItem( item ); } );
271  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode removePreLoadItem(const DataStoreItem &item)=0
Remove an item from the preload list.
StatusCode MultiStoreSvc::resetPreLoad ( )
inlineoverride

Clear the preload list.

Definition at line 273 of file MultiStoreSvc.cpp.

274  {
275  return fwd( [&]( IDataProviderSvc& svc ) { return svc.resetPreLoad(); } );
276  }
StatusCode fwd(Fun f)
virtual StatusCode resetPreLoad()=0
Clear the preload list.
Data provider interface definition.
StatusCode MultiStoreSvc::retrieveObject ( IRegistry parent,
boost::string_ref  path,
OBJECT *&  pObj 
)
inlineoverride

Retrieve object from data store.

Definition at line 308 of file MultiStoreSvc.cpp.

309  {
310  return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( parent, path, pObj ); } );
311  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode retrieveObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
CLID MultiStoreSvc::rootCLID ( ) const
inlineoverride

IDataManagerSvc: Accessor for root event CLID.

Definition at line 137 of file MultiStoreSvc.cpp.

137 { return m_rootCLID; }
Gaudi::Property< CLID > m_rootCLID
const std::string& MultiStoreSvc::rootName ( ) const
inlineoverride

Name for root Event.

Definition at line 139 of file MultiStoreSvc.cpp.

139 { return m_rootName; }
Gaudi::Property< std::string > m_rootName
StatusCode MultiStoreSvc::setDataLoader ( IConversionSvc pDataLoader,
IDataProviderSvc dpsvc = nullptr 
)
inlineoverride

IDataManagerSvc: Pass a default data loader to the service.

Definition at line 253 of file MultiStoreSvc.cpp.

254  {
255  m_dataLoader = pDataLoader;
256  if ( m_dataLoader ) m_dataLoader->setDataProvider( dpsvc ? dpsvc : this );
257  for ( auto& i : m_partitions ) {
258  i.second.dataManager->setDataLoader( m_dataLoader.get() ).ignore();
259  }
260  return StatusCode::SUCCESS;
261  }
Partitions m_partitions
Datastore partitions.
virtual StatusCode setDataProvider(IDataProviderSvc *pService)=0
Set Data provider service.
SmartIF< IConversionSvc > m_dataLoader
Pointer to data loader service.
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:82
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
StatusCode MultiStoreSvc::setRoot ( std::string  path,
OBJECT pObj 
)
inlineoverride

Initialize data store for new event by giving new event path and root object.

Takes care to clear the store before reinitializing it

Definition at line 223 of file MultiStoreSvc.cpp.

224  {
225  visit( m_root.root,
226  []( auto* p ) {
227  if ( p ) p->release();
228  },
229  []( boost::blank ) {} );
230  m_root.path = std::move( path );
231  m_root.root = pObj;
233  return activate( m_defaultPartition );
234  }
struct MultiStoreSvc::tagROOT m_root
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
Gaudi::Property< std::string > m_defaultPartition
StatusCode preparePartitions()
Prepare partition for usage.
T move(T...args)
StatusCode activate(CSTR &nam) override
Activate a partition object. The name identifies the partition uniquely.
StatusCode MultiStoreSvc::setRoot ( std::string  path,
ADDRESS pAddr 
)
inlineoverride

Initialize data store for new event by giving new event path and address of root object.

Takes care to clear the store before reinitializing it

Definition at line 238 of file MultiStoreSvc.cpp.

239  {
240  visit( m_root.root,
241  []( auto* p ) {
242  if ( p ) p->release();
243  },
244  []( boost::blank ) {} );
245  m_root.path = std::move( path );
246  m_root.root = pAddr;
247  if ( !pAddr ) return StatusCode::FAILURE;
248  pAddr->addRef();
250  return activate( m_defaultPartition );
251  }
constexpr static const auto FAILURE
Definition: StatusCode.h:88
struct MultiStoreSvc::tagROOT m_root
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
Gaudi::Property< std::string > m_defaultPartition
StatusCode preparePartitions()
Prepare partition for usage.
T move(T...args)
StatusCode activate(CSTR &nam) override
Activate a partition object. The name identifies the partition uniquely.
virtual unsigned long addRef()=0
Add reference to object.
StatusCode MultiStoreSvc::traverseSubTree ( boost::string_ref  path,
AGENT pAgent 
)
inlineoverride

Analyze by traversing all data objects below the sub tree.

Definition at line 207 of file MultiStoreSvc.cpp.

208  {
209  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseSubTree( path, pAgent ); } );
210  }
StatusCode fwd(Fun f)
virtual StatusCode traverseSubTree(boost::string_ref sub_tree_path, IDataStoreAgent *pAgent)=0
Analyse by traversing all data objects below the sub tree identified by its full path name...
StatusCode MultiStoreSvc::traverseSubTree ( OBJECT pObject,
AGENT pAgent 
)
inlineoverride

IDataManagerSvc: Analyze by traversing all data objects below the sub tree.

Definition at line 212 of file MultiStoreSvc.cpp.

213  {
214  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseSubTree( pObject, pAgent ); } );
215  }
StatusCode fwd(Fun f)
virtual StatusCode traverseSubTree(boost::string_ref sub_tree_path, IDataStoreAgent *pAgent)=0
Analyse by traversing all data objects below the sub tree identified by its full path name...
StatusCode MultiStoreSvc::traverseTree ( AGENT pAgent)
inlineoverride

IDataManagerSvc: Analyze by traversing all data objects in the data store.

Definition at line 217 of file MultiStoreSvc.cpp.

218  {
219  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseTree( pAgent ); } );
220  }
virtual StatusCode traverseTree(IDataStoreAgent *pAgent)=0
Analyse by traversing all data objects in the data store.
StatusCode fwd(Fun f)
StatusCode MultiStoreSvc::unlinkObject ( IRegistry from,
boost::string_ref  objPath 
)
inlineoverride

Remove a link to another object.

Definition at line 333 of file MultiStoreSvc.cpp.

334  {
335  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
336  }
virtual StatusCode unlinkObject(IRegistry *from, boost::string_ref objPath)=0
Remove a link to another object.
StatusCode fwd(Fun f)
Data provider interface definition.
StatusCode MultiStoreSvc::unlinkObject ( OBJECT from,
boost::string_ref  objPath 
)
inlineoverride

Remove a link to another object.

Definition at line 338 of file MultiStoreSvc.cpp.

339  {
340  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
341  }
virtual StatusCode unlinkObject(IRegistry *from, boost::string_ref objPath)=0
Remove a link to another object.
StatusCode fwd(Fun f)
Data provider interface definition.
StatusCode MultiStoreSvc::unlinkObject ( boost::string_ref  path)
inlineoverride

Remove a link to another object.

Definition at line 343 of file MultiStoreSvc.cpp.

344  {
345  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( path ); } );
346  }
virtual StatusCode unlinkObject(IRegistry *from, boost::string_ref objPath)=0
Remove a link to another object.
StatusCode fwd(Fun f)
Data provider interface definition.
StatusCode MultiStoreSvc::unregisterAddress ( boost::string_ref  path)
inlineoverride

IDataManagerSvc: Unregister object address from the data store.

Definition at line 152 of file MultiStoreSvc.cpp.

153  {
154  return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( path ); } );
155  }
StatusCode fwd(Fun f)
virtual StatusCode unregisterAddress(boost::string_ref fullPath)=0
Unregister object address from the data store.
StatusCode MultiStoreSvc::unregisterAddress ( IRegistry pParent,
boost::string_ref  path 
)
inlineoverride

IDataManagerSvc: Unregister object address from the data store.

Definition at line 157 of file MultiStoreSvc.cpp.

158  {
159  return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( pParent, path ); } );
160  }
StatusCode fwd(Fun f)
virtual StatusCode unregisterAddress(boost::string_ref fullPath)=0
Unregister object address from the data store.
StatusCode MultiStoreSvc::unregisterObject ( boost::string_ref  path)
inlineoverride

Unregister object from the data store.

Definition at line 293 of file MultiStoreSvc.cpp.

294  {
295  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( path ); } );
296  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode unregisterObject(boost::string_ref fullPath)=0
Unregister object from the data store.
StatusCode MultiStoreSvc::unregisterObject ( OBJECT pObj)
inlineoverride

Unregister object from the data store.

Definition at line 298 of file MultiStoreSvc.cpp.

299  {
300  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj ); } );
301  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode unregisterObject(boost::string_ref fullPath)=0
Unregister object from the data store.
StatusCode MultiStoreSvc::unregisterObject ( OBJECT pObj,
boost::string_ref  path 
)
inlineoverride

Unregister object from the data store.

Definition at line 303 of file MultiStoreSvc.cpp.

304  {
305  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj, path ); } );
306  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode unregisterObject(boost::string_ref fullPath)=0
Unregister object from the data store.
StatusCode MultiStoreSvc::updateObject ( IRegistry pDirectory)
inlineoverride

Update object identified by its directory entry.

Definition at line 348 of file MultiStoreSvc.cpp.

349  {
350  return fwd( [&]( IDataProviderSvc& svc ) { return svc.updateObject( pDirectory ); } );
351  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode updateObject(IRegistry *pDirectory)=0
Update object identified by its directory entry.
StatusCode MultiStoreSvc::updateObject ( OBJECT pObj)
inlineoverride

Update object.

Definition at line 353 of file MultiStoreSvc.cpp.

354  {
355  return fwd( [&]( IDataProviderSvc& svc ) { return svc.updateObject( pObj ); } );
356  }
StatusCode fwd(Fun f)
Data provider interface definition.
virtual StatusCode updateObject(IRegistry *pDirectory)=0
Update object identified by its directory entry.

Member Data Documentation

SmartIF<IAddressCreator> MultiStoreSvc::m_addrCreator
protected

Reference to address creator.

Definition at line 116 of file MultiStoreSvc.cpp.

Partition MultiStoreSvc::m_current
protected

Current partition.

Definition at line 123 of file MultiStoreSvc.cpp.

SmartIF<IConversionSvc> MultiStoreSvc::m_dataLoader
protected

Pointer to data loader service.

Definition at line 114 of file MultiStoreSvc.cpp.

Gaudi::Property<std::string> MultiStoreSvc::m_defaultPartition {this, "DefaultPartition", "Default", "default partition name"}
protected

Definition at line 111 of file MultiStoreSvc.cpp.

Gaudi::Property<std::string> MultiStoreSvc::m_loader {this, "DataLoader", "EventPersistencySvc", "data loader name"}
protected

Definition at line 110 of file MultiStoreSvc.cpp.

Gaudi::Property<PartitionDefs> MultiStoreSvc::m_partitionDefs {this, "Partitions", {}, "datastore partition definitions"}
protected

Definition at line 109 of file MultiStoreSvc.cpp.

Partitions MultiStoreSvc::m_partitions
protected

Datastore partitions.

Definition at line 125 of file MultiStoreSvc.cpp.

struct MultiStoreSvc::tagROOT MultiStoreSvc::m_root
protected
Gaudi::Property<CLID> MultiStoreSvc::m_rootCLID {this, "RootCLID", 110, "CLID of root entry"}
protected

Definition at line 107 of file MultiStoreSvc.cpp.

Gaudi::Property<std::string> MultiStoreSvc::m_rootName {this, "RootName", "/Event", "name of root entry"}
protected

Definition at line 108 of file MultiStoreSvc.cpp.


The documentation for this class was generated from the following file: