![]() |
The Gaudi Framework
v26r0
|
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... | |
virtual | ~DataSvcFileEntriesTool () |
Destructor. More... | |
virtual StatusCode | initialize () |
Initialize the tool. More... | |
virtual StatusCode | finalize () |
Finalize the tool. More... | |
virtual const LeavesList & | leaves () const |
Return the list of collected objects. More... | |
virtual void | handle (const Incident &incident) |
Call-back function for the BeginEvent incident. More... | |
![]() | |
extends2 (A1 a1, A2 a2, A3 a3) | |
Templated constructor with 3 arguments. More... | |
extends2 (A1 a1, A2 a2) | |
Templated constructor with 2 arguments. More... | |
extends2 (A1 a1) | |
Templated constructor with 1 argument. More... | |
extends2 () | |
Default constructor. More... | |
virtual void * | i_cast (const InterfaceID &tid) const |
Implementation of IInterface::i_cast. More... | |
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
Implementation of IInterface::queryInterface. More... | |
virtual std::vector< std::string > | getInterfaceNames () const |
Implementation of IInterface::getInterfaceNames. More... | |
virtual | ~extends2 () |
Virtual destructor. More... | |
![]() | |
virtual const std::string & | name () const |
Retrieve full identifying name of the concrete tool object. More... | |
virtual const std::string & | type () const |
Retrieve type (concrete class) of the sub-algtool. More... | |
virtual const IInterface * | parent () const |
Retrieve parent of the sub-algtool. More... | |
virtual StatusCode | configure () |
Configuration (from OFFLINE to CONFIGURED). More... | |
virtual StatusCode | start () |
Start (from INITIALIZED to RUNNING). More... | |
virtual StatusCode | stop () |
Stop (from RUNNING to INITIALIZED). More... | |
virtual StatusCode | terminate () |
Initialization (from CONFIGURED to OFFLINE). More... | |
virtual StatusCode | reinitialize () |
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED). More... | |
virtual StatusCode | restart () |
Initialization (from RUNNING to RUNNING, via INITIALIZED). More... | |
virtual Gaudi::StateMachine::State | FSMState () const |
Get the current state. More... | |
virtual Gaudi::StateMachine::State | targetFSMState () const |
When we are in the middle of a transition, get the state where the transition is leading us. More... | |
virtual StatusCode | sysInitialize () |
Initialize AlgTool. More... | |
virtual StatusCode | sysStart () |
Start AlgTool. More... | |
virtual StatusCode | sysStop () |
Stop AlgTool. More... | |
virtual StatusCode | sysFinalize () |
Finalize AlgTool. More... | |
virtual StatusCode | sysReinitialize () |
Initialize AlgTool. More... | |
virtual StatusCode | sysRestart () |
Start AlgTool. More... | |
virtual StatusCode | setProperty (const Property &p) |
Default implementations for IProperty interface. More... | |
virtual StatusCode | setProperty (const std::string &s) |
Set the property by string. More... | |
virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
Set the property by std::string. More... | |
virtual StatusCode | getProperty (Property *p) const |
Get the property by property. More... | |
virtual const Property & | getProperty (const std::string &name) const |
Get the property by name. More... | |
virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
Get the property by std::string. More... | |
virtual const std::vector < Property * > & | getProperties () const |
Get list of properties. More... | |
PropertyMgr * | getPropertyMgr () |
template<class TYPE > | |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
set the property form the value More... | |
AlgTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard Constructor. More... | |
ISvcLocator * | serviceLocator () const |
Retrieve pointer to service locator. More... | |
ISvcLocator * | svcLoc () const |
shortcut for the method service locator More... | |
IMessageSvc * | msgSvc () const |
Retrieve pointer to message service. More... | |
IToolSvc * | toolSvc () const |
The standard ToolSvc service, Return a pointer to the service if present. More... | |
StatusCode | setProperties () |
Method for setting declared properties to the values specified in the jobOptions via the job option service. More... | |
template<class T > | |
StatusCode | service (const std::string &name, T *&svc, 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 &type, const std::string &name, T *&svc) const |
Access a service by name, type creating it if it doesn't already exist. More... | |
SmartIF< IService > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
Return a pointer to the service identified by name (or "type/name") More... | |
void | declInterface (const InterfaceID &, void *) |
declare interface More... | |
template<class T > | |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Declare the named property. More... | |
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
Declare remote named properties. More... | |
IAuditorSvc * | auditorSvc () const |
Access the auditor service. More... | |
IMonitorSvc * | monitorSvc () const |
Access the monitor service. More... | |
template<class T > | |
void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
Declare monitoring information. More... | |
void | declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const |
Declare monitoring information (special case) More... | |
![]() | |
virtual | ~extend_interfaces3 () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (IAlgTool, 3, 0) | |
InterfaceID. More... | |
virtual | ~IAlgTool () |
Virtual destructor. More... | |
virtual unsigned long | refCount () const =0 |
Current number of reference counts. More... | |
![]() | |
DeclareInterfaceID (INamedInterface, 1, 0) | |
InterfaceID. More... | |
virtual | ~INamedInterface () |
Virtual destructor (always needed for abstract classes). More... | |
![]() | |
virtual unsigned long | addRef ()=0 |
Increment the reference count of Interface instance. More... | |
virtual unsigned long | release ()=0 |
Release Interface instance. More... | |
virtual | ~IInterface () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (IProperty, 2, 0) | |
InterfaceID. More... | |
![]() | |
DeclareInterfaceID (IStateful, 1, 0) | |
InterfaceID. More... | |
virtual | ~IStateful () |
![]() | |
virtual | ~extend_interfaces2 () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (IDataStoreLeaves, 1, 0) | |
InterfaceID. More... | |
![]() | |
DeclareInterfaceID (IIncidentListener, 2, 0) | |
InterfaceID. 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 | |
![]() | |
typedef extends2 | base_class |
Typedef to this class. More... | |
typedef extend_interfaces2 < IDataStoreLeaves, IIncidentListener > | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extend_interfaces_base::ext_iids | interfaces |
MPL set of all the implemented interfaces. More... | |
![]() | |
typedef Gaudi::PluginService::Factory < IAlgTool *, const std::string &, const std::string &, const IInterface * > | Factory |
![]() | |
typedef implements3 | base_class |
Typedef to this class. More... | |
typedef extend_interfaces3 < IAlgTool, IProperty, IStateful > | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extend_interfaces_base::ext_iids | interfaces |
MPL set of all the implemented interfaces. More... | |
![]() | |
typedef mpl::fold< typename IAlgTool::iid::iids::type, typename mpl::fold< typename IProperty::iid::iids::type, typename IStateful::iid::iids::type, mpl::insert< mpl::_1, mpl::_2 > >::type, mpl::insert< mpl::_1, mpl::_2 > >::type | ext_iids |
MPL set of interfaces extended by this one. More... | |
![]() | |
enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
Return status. More... | |
typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
Interface ID. More... | |
typedef mpl::set1< iid > | ext_iids |
Extra interfaces. More... | |
![]() | |
typedef mpl::fold< typename IDataStoreLeaves::iid::iids::type, typename IIncidentListener::iid::iids::type, mpl::insert< mpl::_1, mpl::_2 > >::type | ext_iids |
MPL set of interfaces extended by this one. More... | |
![]() | |
typedef std::vector< DataObject * > | LeavesList |
Returned type. More... | |
![]() | |
static const InterfaceID & | interfaceID () |
Return an instance of InterfaceID identifying the interface. More... | |
![]() | |
int | outputLevel () const |
get tool's output level More... | |
IntegerProperty & | outputLevelProperty () |
Accessor for the Message level property. More... | |
void | initOutputLevel (Property &prop) |
callback for output level property More... | |
virtual | ~AlgTool () |
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.
|
virtual |
|
virtual |
Finalize the tool.
Reimplemented from AlgTool.
Definition at line 155 of file DataSvcFileEntriesTool.cpp.
|
virtual |
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.
Implements IIncidentListener.
Definition at line 168 of file DataSvcFileEntriesTool.cpp.
|
private |
Scan the data service starting from the node specified as Root.
Definition at line 201 of file DataSvcFileEntriesTool.cpp.
|
private |
Scan the data service starting from the specified node.
todo: implement the scanning as an IDataStoreAgent
Definition at line 206 of file DataSvcFileEntriesTool.cpp.
|
private |
Return the pointer to the IRegistry object associated to the node specified as Root.
Definition at line 191 of file DataSvcFileEntriesTool.cpp.
|
virtual |
Initialize the tool.
Reimplemented from AlgTool.
Definition at line 122 of file DataSvcFileEntriesTool.cpp.
|
virtual |
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.
Implements IDataStoreLeaves.
Definition at line 184 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.