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