The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
IIoComponentMgr Class Referenceabstract

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/IIoComponentMgr.h>

Inheritance diagram for IIoComponentMgr:
Collaboration diagram for IIoComponentMgr:

Classes

struct  IoMode
 

Public Member Functions

 DeclareInterfaceID (IIoComponentMgr, 1, 0)
 
virtual StatusCode io_register (IIoComponent *iocomponent)=0
 : allow a IIoComponent to register itself with this manager so appropriate actions can be taken when e.g.
 
virtual StatusCode io_register (IIoComponent *iocomponent, IIoComponentMgr::IoMode::Type iomode, const std::string &fname, const std::string &pfn="")=0
 : allow a IIoComponent to register itself with this manager so appropriate actions can be taken when e.g.
 
virtual StatusCode io_update (IIoComponent *iocomponent, const std::string &old_fname, const std::string &new_fname)=0
 : allow a IIoComponent to update the contents of the registry with a new file name
 
virtual StatusCode io_update (IIoComponent *iocomponent, const std::string &work_dir)=0
 : allow a IIoComponent to update the contents of the registry with a new work directory
 
virtual StatusCode io_update_all (const std::string &work_dir)=0
 : Update all IIoComponents with a new work directory
 
virtual bool io_hasitem (IIoComponent *iocomponent) const =0
 : check if the registry contains a given IIoComponent
 
virtual bool io_contains (IIoComponent *iocomponent, const std::string &fname) const =0
 : check if the registry contains a given IIoComponent and that component had
 
virtual std::vector< std::string > io_retrieve (IIoComponent *iocomponent)=0
 : retrieve all registered filenames for a given IIoComponent
 
virtual StatusCode io_retrieve (IIoComponent *iocomponent, std::string &fname)=0
 : retrieve the new filename for a given IIoComponent and
 
virtual StatusCode io_reinitialize ()=0
 : reinitialize the I/O subsystem.
 
virtual StatusCode io_finalize ()=0
 : finalize the I/O subsystem.
 
- Public Member Functions inherited from INamedInterface
 DeclareInterfaceID (INamedInterface, 1, 0)
 InterfaceID.
 
virtual const std::string & name () const =0
 Retrieve the name of the instance.
 
- Public Member Functions inherited from IInterface
template<Gaudi::IsInterface TARGET>
TARGET * cast ()
 
template<Gaudi::IsInterface TARGET>
TARGET const * cast () const
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET * cast ()
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET const * cast () const
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef () const =0
 Increment the reference count of Interface instance.
 
virtual unsigned long release () const =0
 Release Interface instance.
 
virtual unsigned long refCount () const =0
 Current reference count.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()=default
 Virtual destructor.
 
virtual void const * i_cast (const InterfaceID &) const =0
 
void * i_cast (const InterfaceID &iid)
 

Additional Inherited Members

- Public Types inherited from IInterface
enum class  Status : StatusCode::code_t {
  FAILURE = 0 , SUCCESS = 1 , NO_INTERFACE , VERSMISMATCH ,
  LAST_ERROR
}
 Return status. More...
 
using iid = Gaudi::InterfaceId<IInterface, 0, 0>
 Interface ID.
 
using ext_iids = Gaudi::interface_list<iid>
 Extra interfaces.
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 
- Protected Member Functions inherited from IInterface
virtual unsigned long decRef () const =0
 Decrement reference count and return the new reference count.
 

Detailed Description

Definition at line 24 of file IIoComponentMgr.h.

Member Function Documentation

◆ DeclareInterfaceID()

IIoComponentMgr::DeclareInterfaceID ( IIoComponentMgr ,
1 ,
0  )

◆ io_contains()

virtual bool IIoComponentMgr::io_contains ( IIoComponent * iocomponent,
const std::string & fname ) const
pure virtual

: check if the registry contains a given IIoComponent and that component had

Parameters
`fname`as a filename

◆ io_finalize()

virtual StatusCode IIoComponentMgr::io_finalize ( )
pure virtual

: finalize the I/O subsystem.

Hook to allow to e.g. give a chance to I/O subsystems to merge output files. Not sure how to do this correctly though...

◆ io_hasitem()

virtual bool IIoComponentMgr::io_hasitem ( IIoComponent * iocomponent) const
pure virtual

: check if the registry contains a given IIoComponent

◆ io_register() [1/2]

virtual StatusCode IIoComponentMgr::io_register ( IIoComponent * iocomponent)
pure virtual

: allow a IIoComponent to register itself with this manager so appropriate actions can be taken when e.g.

a fork(2) has been issued (this is usually handled by calling IIoComponent::io_reinit on every registered component)

◆ io_register() [2/2]

virtual StatusCode IIoComponentMgr::io_register ( IIoComponent * iocomponent,
IIoComponentMgr::IoMode::Type iomode,
const std::string & fname,
const std::string & pfn = "" )
pure virtual

: allow a IIoComponent to register itself with this manager so appropriate actions can be taken when e.g.

a fork(2) has been issued (this is usually handled by calling IIoComponent::io_reinit on every registered component)

◆ io_reinitialize()

virtual StatusCode IIoComponentMgr::io_reinitialize ( )
pure virtual

: reinitialize the I/O subsystem.

This effectively calls IIoComponent::io_reinit on all the registered IIoComponent.

◆ io_retrieve() [1/2]

virtual std::vector< std::string > IIoComponentMgr::io_retrieve ( IIoComponent * iocomponent)
pure virtual

: retrieve all registered filenames for a given IIoComponent

◆ io_retrieve() [2/2]

virtual StatusCode IIoComponentMgr::io_retrieve ( IIoComponent * iocomponent,
std::string & fname )
pure virtual

: retrieve the new filename for a given IIoComponent and

Parameters
`fname`filename

◆ io_update() [1/2]

virtual StatusCode IIoComponentMgr::io_update ( IIoComponent * iocomponent,
const std::string & old_fname,
const std::string & new_fname )
pure virtual

: allow a IIoComponent to update the contents of the registry with a new file name

◆ io_update() [2/2]

virtual StatusCode IIoComponentMgr::io_update ( IIoComponent * iocomponent,
const std::string & work_dir )
pure virtual

: allow a IIoComponent to update the contents of the registry with a new work directory

◆ io_update_all()

virtual StatusCode IIoComponentMgr::io_update_all ( const std::string & work_dir)
pure virtual

: Update all IIoComponents with a new work directory


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