1 #ifndef GAUDIUTILS_IODATAMANAGER_H 2 #define GAUDIUTILS_IODATAMANAGER_H 20 class RawDataConnectionEntry;
40 : type( tech ), ioType( iot ), connection( con ), keepOpen( k )
48 "name of the file catalog service"};
51 "if unaccessible files should be quarantines in job"};
54 this,
"DisablePFNWarning",
false,
55 "if set to True, we will not report when a file is opened by its physical name"};
72 using extends::extends;
91 StatusCode read( Connection* ioDesc,
void*
const data,
size_t len )
override;
93 StatusCode write( Connection* con,
const void* data,
int len )
override;
95 long long int seek( Connection* ioDesc,
long long int where,
int origin )
override;
98 #endif // GAUDIUTILS_IODATAMANAGER_H StatusCode finalize() override
IService implementation: finalize the service.
Gaudi::Property< int > m_ageLimit
Small smart pointer class with automatic reference counting for IInterface.
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Implementation of property with value of concrete type.
Connections connections(const IInterface *owner) const override
Get connection by owner instance (0=ALL)
StatusCode disconnect(Connection *ioDesc) override
Release data stream.
Gaudi::Property< std::string > m_catalogSvcName
SmartIF< IIncidentSvc > m_incSvc
Entry(CSTR tech, bool k, IoType iot, IDataConnection *con)
StatusCode establishConnection(Connection *con)
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
Gaudi::Property< bool > m_quarantine
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
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.
Gaudi::Property< bool > m_useGFAL
StatusCode connectWrite(Connection *con, IoType mode=Connection::CREATE, CSTR doctype="UNKNOWN") override
Open data stream in write mode.
std::map< std::string, Entry * > ConnectionMap
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
Gaudi::Property< bool > m_disablePFNWarning
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.
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)
The interface implemented by the IncidentSvc service.
FidMap m_fidMap
Map of FID to PFN.