![]() |
The Gaudi Framework
v27r0
|
Tool to scan a transient store branch that collects all the objects that belong to the same source (file). More...
Public Member Functions | |
DataSvcFileEntriesTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard constructor. More... | |
~DataSvcFileEntriesTool () override=default | |
Destructor. More... | |
StatusCode | initialize () override |
Initialize the tool. More... | |
StatusCode | finalize () override |
Finalize the tool. More... | |
const LeavesList & | leaves () const override |
Return the list of collected objects. More... | |
void | handle (const Incident &incident) override |
Call-back function for the BeginEvent incident. More... | |
![]() | |
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::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
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::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Private Member Functions | |
void | i_collectLeaves () |
Scan the data service starting from the node specified as Root. More... | |
void | i_collectLeaves (IRegistry *reg) |
Scan the data service starting from the specified node. More... | |
IRegistry * | i_getRootNode () |
Return the pointer to the IRegistry object associated to the node specified as Root. More... | |
Private Attributes | |
std::string | m_dataSvcName |
Variable for the property DataService. More... | |
std::string | m_rootNode |
Variable for the property Root. More... | |
bool | m_scanOnBeginEvent |
Variable for the property ScanOnBeginEvent. More... | |
SmartIF< IIncidentSvc > | m_incidentSvc |
Pointer to the incident service. More... | |
SmartIF< IDataManagerSvc > | m_dataMgrSvc |
Pointer to the IDataManagerSvc interface of the data service. More... | |
SmartIF< IDataProviderSvc > | m_dataSvc |
Pointer to the IDataProviderSvc interface of the data service. More... | |
LeavesList | m_leaves |
Internal cache for the list of objects found during the scan. More... | |
std::string | m_initialBase |
File ID of the Root node. More... | |
bool | m_ignoreOriginChange |
Variable for the property ScanOnBeginEvent. More... | |
Additional Inherited Members | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Tool to scan a transient store branch that collects all the objects that belong to the same source (file).
By default, the list of entries is cached and the cache is cleared at every BeginEvent incident.
Definition at line 26 of file DataSvcFileEntriesTool.cpp.
DataSvcFileEntriesTool::DataSvcFileEntriesTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Standard constructor.
Definition at line 102 of file DataSvcFileEntriesTool.cpp.
|
overridedefault |
Destructor.
|
override |
Finalize the tool.
Definition at line 153 of file DataSvcFileEntriesTool.cpp.
|
override |
Call-back function for the BeginEvent incident.
Clears the internal cache, cache the file ID of the Root node and, if the property ScanOnBeginEvent is set to true, scans the data service.
Definition at line 166 of file DataSvcFileEntriesTool.cpp.
|
private |
Scan the data service starting from the node specified as Root.
Definition at line 199 of file DataSvcFileEntriesTool.cpp.
|
private |
Scan the data service starting from the specified node.
todo: implement the scanning as an IDataStoreAgent
Definition at line 204 of file DataSvcFileEntriesTool.cpp.
|
private |
Return the pointer to the IRegistry object associated to the node specified as Root.
Definition at line 189 of file DataSvcFileEntriesTool.cpp.
|
override |
Initialize the tool.
Definition at line 120 of file DataSvcFileEntriesTool.cpp.
|
override |
Return the list of collected objects.
If the scan was not yet done since the last BeginEvent incident, it is done when calling this function. The result of the scan is cached.
Definition at line 182 of file DataSvcFileEntriesTool.cpp.
|
private |
Pointer to the IDataManagerSvc interface of the data service.
Definition at line 65 of file DataSvcFileEntriesTool.cpp.
|
private |
Pointer to the IDataProviderSvc interface of the data service.
Definition at line 67 of file DataSvcFileEntriesTool.cpp.
|
private |
Variable for the property DataService.
Definition at line 56 of file DataSvcFileEntriesTool.cpp.
|
private |
Variable for the property ScanOnBeginEvent.
Definition at line 88 of file DataSvcFileEntriesTool.cpp.
|
private |
Pointer to the incident service.
Definition at line 63 of file DataSvcFileEntriesTool.cpp.
|
private |
File ID of the Root node.
It is cached every BeginEvent to be compared with the one seen during the collection of the leaves, to avoid that the collection is altered by previous calls to an OutputStream.
Definition at line 85 of file DataSvcFileEntriesTool.cpp.
|
private |
Internal cache for the list of objects found during the scan.
Definition at line 70 of file DataSvcFileEntriesTool.cpp.
|
private |
Variable for the property Root.
Definition at line 58 of file DataSvcFileEntriesTool.cpp.
|
private |
Variable for the property ScanOnBeginEvent.
Definition at line 60 of file DataSvcFileEntriesTool.cpp.