1 #ifndef GAUDIUTILS_IODATAMANAGER_H
2 #define GAUDIUTILS_IODATAMANAGER_H
7 #include "GaudiKernel/Service.h"
8 #include "GaudiUtils/IIODataManager.h"
19 class RawDataConnectionEntry;
31 typedef const std::string&
CSTR;
38 : type(tech), ioType(iot), connection(con), keepOpen(k) {
42 typedef std::map<std::string, std::string>
FidMap;
94 Connection*
connection(
const std::string& dsn)
const override;
98 StatusCode read(Connection* ioDesc,
void*
const data,
size_t len)
override;
102 long long int seek(Connection* ioDesc,
long long int where,
int origin)
override;
105 #endif // GAUDIUTILS_IODATAMANAGER_H
StatusCode finalize() override
IService implementation: finalize the service.
Small smart pointer class with automatic reference counting for IInterface.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
int m_ageLimit
Property: Age limit.
bool m_useGFAL
Property: Flag for auto gfal data access.
std::map< std::string, Entry * > ConnectionMap
StatusCode disconnect(Connection *ioDesc) override
Release data stream.
SmartIF< IIncidentSvc > m_incSvc
Entry(CSTR tech, bool k, IoType iot, IDataConnection *con)
StatusCode establishConnection(Connection *con)
~IODataManager() override=default
Standard destructor.
std::string m_catalogSvcName
Property: Name of the file catalog service.
StatusCode error(CSTR msg, bool rethrow)
Small routine to issue exceptions.
bool m_disablePFNWarning
Property DisablePFNWarning: if set to True will not report when a file is opened by it's physical nam...
StatusCode read(Connection *ioDesc, void *const data, size_t len) override
Read raw byte buffer from input stream.
std::map< std::string, std::string > FidMap
Connection * connection(const std::string &dsn) const override
Retrieve known connection.
StatusCode initialize() override
IService implementation: initialize the service.
This class is used for returning status codes from appropriate routines.
SmartIF< IFileCatalog > m_catalog
Reference to file catalog.
Definition of the basic interface.
StatusCode write(Connection *con, const void *data, int len) override
Write raw byte buffer to output stream.
StatusCode connectWrite(Connection *con, IoType mode=Connection::CREATE, CSTR doctype="UNKNOWN") override
Open data stream in write mode.
bool m_quarantine
Property: Flag if unaccessible files should be quarantines in job.
ABC describing basic data connection.
Base class used to extend a class implementing other interfaces.
ConnectionMap m_connectionMap
Map with I/O descriptors.
IDataConnection * connection
StatusCode connectDataIO(int typ, IoType rw, CSTR fn, CSTR technology, bool keep, Connection *con)
StatusCode connectRead(bool keep_open, Connection *ioDesc) override
Open data stream in read mode.
Connections connections(const IInterface *owner) const override
Get connection by owner instance (0=ALL)
long long int seek(Connection *ioDesc, long long int where, int origin) override
Seek on the file described by ioDesc. Arguments as in ::seek()
Helper functions to set/get the application return code.
StatusCode reconnect(Entry *e)
IODataManager(CSTR nam, ISvcLocator *loc)
the incident service
The interface implemented by the IncidentSvc service.
FidMap m_fidMap
Map of FID to PFN.