|  | The Gaudi Framework
    v29r0 (ff2e7097)
    | 
ABC describing basic data connection. More...
#include <GaudiUtils/IIODataManager.h>


| Public Types | |
| enum | IoType { READ = 1 << 1, UPDATE = 1 << 2, CREATE = 1 << 3, RECREATE = ( 1 << 4 ) + ( 1 << 3 ) } | 
| I/O Connection types.  More... | |
| enum | IoStatus { BAD_DATA_CONNECTION = 4 } | 
| Status Code on bad file connection.  More... | |
| Public Member Functions | |
| IDataConnection (const IInterface *own, std::string nam) | |
| Standard constructor.  More... | |
| virtual | ~IDataConnection ()=default | 
| Standard destructor.  More... | |
| const std::string & | name () const | 
| Connection name.  More... | |
| void | setFID (std::string fid) | 
| Set file ID.  More... | |
| const std::string & | fid () const | 
| Access file id.  More... | |
| const std::string & | pfn () const | 
| Access physical file name.  More... | |
| void | setPFN (std::string fn) | 
| Set physical file name.  More... | |
| int | ageFile () | 
| Increase age of I/O source.  More... | |
| void | resetAge () | 
| Reset age.  More... | |
| int | age () const | 
| Access age counter.  More... | |
| const IInterface * | owner () const | 
| Owner instance.  More... | |
| virtual StatusCode | connectRead ()=0 | 
| Open data stream in read mode.  More... | |
| virtual StatusCode | connectWrite (IoType type)=0 | 
| Open data stream in write mode.  More... | |
| virtual StatusCode | disconnect ()=0 | 
| Release data stream.  More... | |
| virtual bool | isConnected () const =0 | 
| Check if connected to data source.  More... | |
| virtual StatusCode | read (void *const data, size_t len)=0 | 
| Read raw byte buffer from input stream.  More... | |
| virtual StatusCode | write (const void *data, int len)=0 | 
| Write raw byte buffer to output stream.  More... | |
| virtual long long int | seek (long long int where, int origin)=0 | 
| Seek on the file described by ioDesc. Arguments as in ::seek()  More... | |
| Protected Attributes | |
| std::string | m_name | 
| Connection name/identifier.  More... | |
| std::string | m_fid | 
| File ID of the connection.  More... | |
| std::string | m_pfn | 
| Physical file name of the connection.  More... | |
| int | m_age = 0 | 
| Age counter.  More... | |
| const IInterface * | m_owner = nullptr | 
| Owner pointer.  More... | |
ABC describing basic data connection.
Definition at line 25 of file IIODataManager.h.
| enum Gaudi::IDataConnection::IoStatus | 
Status Code on bad file connection.
| Enumerator | |
|---|---|
| BAD_DATA_CONNECTION | |
Definition at line 43 of file IIODataManager.h.
| enum Gaudi::IDataConnection::IoType | 
I/O Connection types.
| Enumerator | |
|---|---|
| READ | |
| UPDATE | |
| CREATE | |
| RECREATE | |
Definition at line 41 of file IIODataManager.h.
| 
 | inline | 
Standard constructor.
Definition at line 47 of file IIODataManager.h.
| 
 | virtualdefault | 
Standard destructor.
| 
 | inline | 
| 
 | inline | 
| 
 | pure virtual | 
Open data stream in read mode.
Implemented in Gaudi::RootDataConnection.
| 
 | pure virtual | 
Open data stream in write mode.
Implemented in Gaudi::RootDataConnection.
| 
 | pure virtual | 
Release data stream.
Implemented in Gaudi::RootDataConnection.
| 
 | inline | 
Access file id.
Definition at line 55 of file IIODataManager.h.
| 
 | pure virtual | 
Check if connected to data source.
Implemented in Gaudi::RootDataConnection.
| 
 | inline | 
Connection name.
Definition at line 51 of file IIODataManager.h.
| 
 | inline | 
Owner instance.
Definition at line 67 of file IIODataManager.h.
| 
 | inline | 
Access physical file name.
Definition at line 57 of file IIODataManager.h.
| 
 | pure virtual | 
Read raw byte buffer from input stream.
Implemented in Gaudi::RootDataConnection.
| 
 | inline | 
| 
 | pure virtual | 
Seek on the file described by ioDesc. Arguments as in ::seek()
Implemented in Gaudi::RootDataConnection.
| 
 | inline | 
Set file ID.
Definition at line 53 of file IIODataManager.h.
| 
 | inline | 
Set physical file name.
Definition at line 59 of file IIODataManager.h.
| 
 | pure virtual | 
Write raw byte buffer to output stream.
Implemented in Gaudi::RootDataConnection.
| 
 | protected | 
Age counter.
Definition at line 35 of file IIODataManager.h.
| 
 | protected | 
File ID of the connection.
Definition at line 31 of file IIODataManager.h.
| 
 | protected | 
Connection name/identifier.
Definition at line 29 of file IIODataManager.h.
| 
 | protected | 
Owner pointer.
Definition at line 37 of file IIODataManager.h.
| 
 | protected | 
Physical file name of the connection.
Definition at line 33 of file IIODataManager.h.