The Gaudi Framework  v31r0 (aeb156f0)
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 96 of file MultiStoreSvc.cpp.

Member Typedef Documentation

Definition at line 98 of file MultiStoreSvc.cpp.

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

Definition at line 99 of file MultiStoreSvc.cpp.

Constructor & Destructor Documentation

MultiStoreSvc::~MultiStoreSvc ( )
inlineoverride

Standard Destructor.

Definition at line 476 of file MultiStoreSvc.cpp.

476  {
477  setDataLoader( nullptr ).ignore();
478  resetPreLoad().ignore();
479  clearStore().ignore();
481  }
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:153
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 351 of file MultiStoreSvc.cpp.

351  {
352  auto i = m_partitions.find( nam );
353  if ( i != m_partitions.end() ) {
354  m_current = i->second;
355  return StatusCode::SUCCESS;
356  }
357  m_current = {};
359  }
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T end(T...args)
Partition m_current
Current partition.
T find(T...args)
StatusCode MultiStoreSvc::activate ( IInterface pPartition)
inlineoverride

Activate a partition object.

Definition at line 362 of file MultiStoreSvc.cpp.

362  {
363  auto provider = SmartIF<IDataProviderSvc>( pPartition );
364  m_current = Partition();
365  if ( !provider ) return IInterface::Status::NO_INTERFACE;
367  [&]( Partitions::const_reference p ) { return p.second.dataProvider == provider; } );
369  m_current = i->second;
370  return StatusCode::SUCCESS;
371  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T end(T...args)
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 385 of file MultiStoreSvc.cpp.

385  {
386  if ( m_current.dataProvider ) {
387  nam = m_current.name;
388  pPartition = m_current.dataProvider;
389  return StatusCode::SUCCESS;
390  }
391  nam.clear();
392  pPartition = nullptr;
394  }
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T clear(T...args)
Partition m_current
Current partition.
StatusCode MultiStoreSvc::addPreLoadItem ( const DataStoreItem item)
inlineoverride

Add an item to the preload list.

Definition at line 235 of file MultiStoreSvc.cpp.

235  {
236  return fwd( [&]( IDataProviderSvc& svc ) { return svc.addPreLoadItem( item ); } );
237  }
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 396 of file MultiStoreSvc.cpp.

396  {
397  // Attach address creator facility
398  m_addrCreator = service( m_loader, true );
399  if ( !m_addrCreator ) {
400  error() << "Failed to retrieve data loader "
401  << "\"" << m_loader << "\"" << endmsg;
402  return StatusCode::FAILURE;
403  }
404  // Attach data loader facility
405  auto dataLoader = service<IConversionSvc>( m_loader, true );
406  if ( !dataLoader ) {
407  error() << "Failed to retrieve data loader "
408  << "\"" << m_loader << "\"" << endmsg;
409  return StatusCode::FAILURE;
410  }
411  auto sc = setDataLoader( dataLoader.get() );
412  if ( !sc.isSuccess() ) {
413  error() << "Failed to set data loader "
414  << "\"" << m_loader << "\"" << endmsg;
415  }
416  return sc;
417  }
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Gaudi::Property< std::string > m_loader
SmartIF< IAddressCreator > m_addrCreator
Reference to address creator.
constexpr static const auto FAILURE
Definition: StatusCode.h:86
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:83
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192
StatusCode MultiStoreSvc::clearPartitions ( )
inline

Clear all partitions.

Definition at line 509 of file MultiStoreSvc.cpp.

509  {
510  for ( auto& i : m_partitions ) i.second.dataManager->clearStore().ignore();
511  m_partitions.clear();
512  return StatusCode::SUCCESS;
513  }
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
StatusCode MultiStoreSvc::clearStore ( )
inlineoverride

IDataManagerSvc: Remove all data objects in the data store.

Definition at line 175 of file MultiStoreSvc.cpp.

175  {
176  for ( auto& i : m_partitions ) { i.second.dataManager->clearStore().ignore(); }
177  visit( m_root.root,
178  []( auto* p ) {
179  if ( p ) p->release();
180  },
181  []( boost::blank ) {} );
182  m_root.root = {};
183  m_root.path.clear();
184  return StatusCode::SUCCESS;
185  }
Partitions m_partitions
Datastore partitions.
struct MultiStoreSvc::tagROOT m_root
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T clear(T...args)
StatusCode MultiStoreSvc::clearSubTree ( boost::string_ref  path)
inlineoverride

Remove all data objects below the sub tree identified.

Definition at line 167 of file MultiStoreSvc.cpp.

167  {
168  return fwd( [&]( IDataManagerSvc& svc ) { return svc.clearSubTree( path ); } );
169  }
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 171 of file MultiStoreSvc.cpp.

171  {
172  return fwd( [&]( IDataManagerSvc& svc ) { return svc.clearSubTree( pObject ); } );
173  }
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 311 of file MultiStoreSvc.cpp.

311  {
312  IInterface* pPartition = nullptr;
313  return create( nam, typ, pPartition );
314  }
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:244
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 316 of file MultiStoreSvc.cpp.

316  {
317  if ( get( nam, pPartition ).isSuccess() ) return IPartitionControl::Status::PARTITION_EXISTS;
319  auto isvc = serviceLocator()->service<IService>( typ );
320  if ( !isvc ) return IInterface::Status::NO_INTERFACE;
321  auto dataMgr = isvc.as<IDataManagerSvc>();
322  auto dataProv = isvc.as<IDataProviderSvc>();
323  if ( !dataMgr || !dataProv ) return IInterface::Status::NO_INTERFACE;
324  m_partitions.emplace( nam, Partition{dataProv, dataMgr, nam} );
325  return StatusCode::SUCCESS;
326  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
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:76
General service interface definition.
Definition: IService.h:18
T emplace(T...args)
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:277
StatusCode MultiStoreSvc::detachServices ( )
inline

Definition at line 419 of file MultiStoreSvc.cpp.

419  {
422  return StatusCode::SUCCESS;
423  }
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
SmartIF< IConversionSvc > m_dataLoader
Pointer to data loader service.
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:86
StatusCode MultiStoreSvc::drop ( CSTR nam)
inlineoverride

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

Definition at line 329 of file MultiStoreSvc.cpp.

329  {
330  auto i = m_partitions.find( nam );
332  if ( i->second.dataManager == m_current.dataManager ) { m_current = Partition(); }
333  i->second.dataManager->clearStore().ignore();
334  m_partitions.erase( i );
335  return StatusCode::SUCCESS;
336  }
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T end(T...args)
T erase(T...args)
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 339 of file MultiStoreSvc.cpp.

339  {
340  auto provider = SmartIF<IDataProviderSvc>( pPartition );
341  if ( !provider ) return IInterface::Status::NO_INTERFACE;
343  [&]( Partitions::const_reference p ) { return p.second.dataProvider == provider; } );
345  i->second.dataManager->clearStore().ignore();
346  m_partitions.erase( i );
347  return StatusCode::SUCCESS;
348  }
Requested interface is not available.
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T end(T...args)
T erase(T...args)
T find_if(T...args)
T begin(T...args)
StatusCode MultiStoreSvc::finalize ( )
inlineoverride

Service initialisation.

Definition at line 461 of file MultiStoreSvc.cpp.

461  {
462  setDataLoader( nullptr ).ignore();
463  clearStore().ignore();
465  m_current = Partition();
466  detachServices();
467  return Service::finalize();
468  }
StatusCode detachServices()
StatusCode clearStore() override
IDataManagerSvc: Remove all data objects in the data store.
StatusCode finalize() override
Definition: Service.cpp:164
StatusCode clearPartitions()
Clear all partitions.
Partition m_current
Current partition.
const StatusCode & ignore() const
Ignore/check StatusCode.
Definition: StatusCode.h:153
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 275 of file MultiStoreSvc.cpp.

275  {
276  return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( path, pObj ); } );
277  }
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 279 of file MultiStoreSvc.cpp.

279  {
280  return fwd( [&]( IDataProviderSvc& svc ) { return svc.findObject( parent, path, pObj ); } );
281  }
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 123 of file MultiStoreSvc.cpp.

123  {
124  auto* svc = m_current.get<std::decay_t<detail::argument_t<Fun>>>();
125  return svc ? f( *svc ) : IDataProviderSvc::Status::INVALID_ROOT;
126  }
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 374 of file MultiStoreSvc.cpp.

374  {
375  auto i = m_partitions.find( nam );
376  if ( i != m_partitions.end() ) {
377  pPartition = i->second.dataProvider;
378  return StatusCode::SUCCESS;
379  }
380  pPartition = nullptr;
382  }
Partitions m_partitions
Datastore partitions.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
T end(T...args)
T find(T...args)
StatusCode MultiStoreSvc::initialize ( )
inlineoverride

Service initialisation.

Definition at line 426 of file MultiStoreSvc.cpp.

426  {
427  // Nothing to do: just call base class initialisation
429  if ( !sc.isSuccess() ) return sc;
430  sc = makePartitions();
431  if ( !sc.isSuccess() ) {
432  error() << "Failed to connect to all store partitions." << endmsg;
433  return sc;
434  }
435  return attachServices();
436  }
StatusCode initialize() override
Definition: Service.cpp:60
bool isSuccess() const
Definition: StatusCode.h:267
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:50
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:192
StatusCode MultiStoreSvc::linkObject ( IRegistry from,
boost::string_ref  objPath,
OBJECT to 
)
inlineoverride

Add a link to another object.

Definition at line 283 of file MultiStoreSvc.cpp.

283  {
284  return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( from, objPath, to ); } );
285  }
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 287 of file MultiStoreSvc.cpp.

287  {
288  return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( fullPath, to ); } );
289  }
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 516 of file MultiStoreSvc.cpp.

516  {
517  using Parser = Gaudi::Utils::AttribStringParser;
518  std::string typ, nam;
520  for ( auto part : m_partitionDefs ) {
521  for ( auto attrib : Parser( std::move( part ) ) ) {
522  switch ( ::toupper( attrib.tag[0] ) ) {
523  case 'N':
524  nam = std::move( attrib.value );
525  break;
526  case 'T':
527  typ = std::move( attrib.value );
528  break;
529  }
530  }
531  StatusCode sc = create( nam, typ );
532  if ( !sc.isSuccess() ) return sc;
533  if ( m_defaultPartition.empty() ) m_defaultPartition = nam;
534  }
535  return StatusCode::SUCCESS;
536  }
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:267
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
StatusCode clearPartitions()
Clear all partitions.
Gaudi::Property< std::string > m_defaultPartition
T move(T...args)
const StatusCode & ignore() const
Ignore/check StatusCode.
Definition: StatusCode.h:153
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 151 of file MultiStoreSvc.cpp.

151  {
152  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectLeaves( pObject, leaves ); } );
153  }
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 155 of file MultiStoreSvc.cpp.

155  {
156  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectLeaves( pObject, leaves ); } );
157  }
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 159 of file MultiStoreSvc.cpp.

159  {
160  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectParent( pObject, refpParent ); } );
161  }
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 163 of file MultiStoreSvc.cpp.

163  {
164  return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectParent( pObject, refpParent ); } );
165  }
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 247 of file MultiStoreSvc.cpp.

247  {
248  return fwd( [&]( IDataProviderSvc& svc ) { return svc.preLoad(); } );
249  }
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 484 of file MultiStoreSvc.cpp.

484  {
486  for ( auto& i : m_partitions ) {
487  StatusCode sc = visit( m_root.root,
488  [&]( ADDRESS* address ) -> StatusCode {
489  if ( !address ) return StatusCode::FAILURE;
490  ADDRESS* pAdd = nullptr;
491  ADDRESS* p = address;
492  auto sc =
493  m_addrCreator->createAddress( p->svcType(), p->clID(), p->par(), p->ipar(), pAdd );
494  return sc.isSuccess() ? i.second.dataManager->setRoot( m_root.path, pAdd ) : sc;
495  },
496  [&]( OBJECT* object ) -> StatusCode {
497  if ( object && object->clID() == CLID_DataObject ) {
498  return i.second.dataManager->setRoot( m_root.path, new DataObject() );
499  }
500  return StatusCode::FAILURE;
501  },
502  []( boost::blank ) -> StatusCode { return StatusCode::FAILURE; } );
503  if ( !sc.isSuccess() ) iret = sc;
504  }
505  return iret;
506  }
Partitions m_partitions
Datastore partitions.
struct MultiStoreSvc::tagROOT m_root
bool isSuccess() const
Definition: StatusCode.h:267
boost::variant< boost::blank, ADDRESS *, OBJECT * > root
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
constexpr static const auto FAILURE
Definition: StatusCode.h:86
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 135 of file MultiStoreSvc.cpp.

135  {
136  return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( path, pAddr ); } );
137  }
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 139 of file MultiStoreSvc.cpp.

139  {
140  return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( parent, path, pAddr ); } );
141  }
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 251 of file MultiStoreSvc.cpp.

251  {
252  return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
253  }
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 255 of file MultiStoreSvc.cpp.

255  {
256  return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
257  }
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 439 of file MultiStoreSvc.cpp.

439  {
441  if ( !sc.isSuccess() ) {
442  error() << "Enable to reinitialize base class" << endmsg;
443  return sc;
444  }
445  detachServices();
446  sc = attachServices();
447  if ( !sc.isSuccess() ) {
448  error() << "Failed to attach necessary services." << endmsg;
449  return sc;
450  }
451  sc = makePartitions();
452  if ( !sc.isSuccess() ) {
453  error() << "Failed to connect to store partitions." << endmsg;
454  return sc;
455  }
456  // return
457  return StatusCode::SUCCESS;
458  }
StatusCode detachServices()
bool isSuccess() const
Definition: StatusCode.h:267
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
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:50
StatusCode reinitialize() override
Definition: Service.cpp:237
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:192
StatusCode MultiStoreSvc::removePreLoadItem ( const DataStoreItem item)
inlineoverride

Remove an item from the preload list.

Definition at line 239 of file MultiStoreSvc.cpp.

239  {
240  return fwd( [&]( IDataProviderSvc& svc ) { return svc.removePreLoadItem( item ); } );
241  }
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 243 of file MultiStoreSvc.cpp.

243  {
244  return fwd( [&]( IDataProviderSvc& svc ) { return svc.resetPreLoad(); } );
245  }
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 271 of file MultiStoreSvc.cpp.

271  {
272  return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( parent, path, pObj ); } );
273  }
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 130 of file MultiStoreSvc.cpp.

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

Name for root Event.

Definition at line 132 of file MultiStoreSvc.cpp.

132 { 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 228 of file MultiStoreSvc.cpp.

228  {
229  m_dataLoader = pDataLoader;
230  if ( m_dataLoader ) m_dataLoader->setDataProvider( dpsvc ? dpsvc : this );
231  for ( auto& i : m_partitions ) { i.second.dataManager->setDataLoader( m_dataLoader.get() ).ignore(); }
232  return StatusCode::SUCCESS;
233  }
Partitions m_partitions
Datastore partitions.
virtual StatusCode setDataProvider(IDataProviderSvc *pService)=0
Set Data provider service.
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
SmartIF< IConversionSvc > m_dataLoader
Pointer to data loader service.
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:76
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 200 of file MultiStoreSvc.cpp.

200  {
201  visit( m_root.root,
202  []( auto* p ) {
203  if ( p ) p->release();
204  },
205  []( boost::blank ) {} );
206  m_root.path = std::move( path );
207  m_root.root = pObj;
209  return activate( m_defaultPartition );
210  }
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 214 of file MultiStoreSvc.cpp.

214  {
215  visit( m_root.root,
216  []( auto* p ) {
217  if ( p ) p->release();
218  },
219  []( boost::blank ) {} );
220  m_root.path = std::move( path );
221  m_root.root = pAddr;
222  if ( !pAddr ) return StatusCode::FAILURE;
223  pAddr->addRef();
225  return activate( m_defaultPartition );
226  }
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.
constexpr static const auto FAILURE
Definition: StatusCode.h:86
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 187 of file MultiStoreSvc.cpp.

187  {
188  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseSubTree( path, pAgent ); } );
189  }
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 191 of file MultiStoreSvc.cpp.

191  {
192  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseSubTree( pObject, pAgent ); } );
193  }
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 195 of file MultiStoreSvc.cpp.

195  {
196  return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseTree( pAgent ); } );
197  }
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 291 of file MultiStoreSvc.cpp.

291  {
292  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
293  }
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 295 of file MultiStoreSvc.cpp.

295  {
296  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
297  }
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 299 of file MultiStoreSvc.cpp.

299  {
300  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( path ); } );
301  }
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 143 of file MultiStoreSvc.cpp.

143  {
144  return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( path ); } );
145  }
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 147 of file MultiStoreSvc.cpp.

147  {
148  return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( pParent, path ); } );
149  }
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 259 of file MultiStoreSvc.cpp.

259  {
260  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( path ); } );
261  }
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 263 of file MultiStoreSvc.cpp.

263  {
264  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj ); } );
265  }
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 267 of file MultiStoreSvc.cpp.

267  {
268  return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj, path ); } );
269  }
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 303 of file MultiStoreSvc.cpp.

303  {
304  return fwd( [&]( IDataProviderSvc& svc ) { return svc.updateObject( pDirectory ); } );
305  }
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 307 of file MultiStoreSvc.cpp.

307  {
308  return fwd( [&]( IDataProviderSvc& svc ) { return svc.updateObject( pObj ); } );
309  }
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 110 of file MultiStoreSvc.cpp.

Partition MultiStoreSvc::m_current
protected

Current partition.

Definition at line 117 of file MultiStoreSvc.cpp.

SmartIF<IConversionSvc> MultiStoreSvc::m_dataLoader
protected

Pointer to data loader service.

Definition at line 108 of file MultiStoreSvc.cpp.

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

Definition at line 105 of file MultiStoreSvc.cpp.

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

Definition at line 104 of file MultiStoreSvc.cpp.

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

Definition at line 103 of file MultiStoreSvc.cpp.

Partitions MultiStoreSvc::m_partitions
protected

Datastore partitions.

Definition at line 119 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 101 of file MultiStoreSvc.cpp.

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

Definition at line 102 of file MultiStoreSvc.cpp.


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