ABC describing basic data connection.
More...
#include </builds/gaudi/Gaudi/GaudiUtils/include/GaudiUtils/IIODataManager.h>
|
| | IDataConnection (const IInterface *own, std::string nam) |
| | Standard constructor.
|
| |
| virtual | ~IDataConnection ()=default |
| | Standard destructor.
|
| |
| const std::string & | name () const |
| | Connection name.
|
| |
| void | setFID (std::string fid) |
| | Set file ID.
|
| |
| const std::string & | fid () const |
| | Access file id.
|
| |
| const std::string & | pfn () const |
| | Access physical file name.
|
| |
| void | setPFN (std::string fn) |
| | Set physical file name.
|
| |
| int | ageFile () |
| | Increase age of I/O source.
|
| |
| void | resetAge () |
| | Reset age.
|
| |
| int | age () const |
| | Access age counter.
|
| |
| const IInterface * | owner () const |
| | Owner instance.
|
| |
| virtual StatusCode | connectRead ()=0 |
| | Open data stream in read mode.
|
| |
| virtual StatusCode | connectWrite (IoType type)=0 |
| | Open data stream in write mode.
|
| |
| virtual StatusCode | disconnect ()=0 |
| | Release data stream.
|
| |
| virtual bool | isConnected () const =0 |
| | Check if connected to data source.
|
| |
| virtual StatusCode | read (void *const data, size_t len)=0 |
| | Read raw byte buffer from input stream.
|
| |
| virtual StatusCode | write (const void *data, int len)=0 |
| | Write raw byte buffer to output stream.
|
| |
| virtual long long int | seek (long long int where, int origin)=0 |
| | Seek on the file described by ioDesc. Arguments as in seek()
|
| |
|
| std::string | m_name |
| | Connection name/identifier.
|
| |
| std::string | m_fid |
| | File ID of the connection.
|
| |
| std::string | m_pfn |
| | Physical file name of the connection.
|
| |
| int | m_age = 0 |
| | Age counter.
|
| |
| const IInterface * | m_owner = nullptr |
| | Owner pointer.
|
| |
ABC describing basic data connection.
- Author
- M.Frank
- Version
- 1.0
- Date
- 20/10/2007
Definition at line 33 of file IIODataManager.h.
◆ IoStatus
Status Code on bad file connection.
| Enumerator |
|---|
| BAD_DATA_CONNECTION | |
Definition at line 50 of file IIODataManager.h.
◆ IoType
I/O Connection types.
| Enumerator |
|---|
| READ | |
| UPDATE | |
| CREATE | |
| RECREATE | |
Definition at line 48 of file IIODataManager.h.
◆ IDataConnection()
| Gaudi::IDataConnection::IDataConnection |
( |
const IInterface * | own, |
|
|
std::string | nam ) |
|
inline |
Standard constructor.
Definition at line 54 of file IIODataManager.h.
const IInterface * m_owner
Owner pointer.
std::string m_name
Connection name/identifier.
◆ ~IDataConnection()
| virtual Gaudi::IDataConnection::~IDataConnection |
( |
| ) |
|
|
virtualdefault |
◆ age()
| int Gaudi::IDataConnection::age |
( |
| ) |
const |
|
inline |
◆ ageFile()
| int Gaudi::IDataConnection::ageFile |
( |
| ) |
|
|
inline |
◆ connectRead()
| virtual StatusCode Gaudi::IDataConnection::connectRead |
( |
| ) |
|
|
pure virtual |
◆ connectWrite()
◆ disconnect()
| virtual StatusCode Gaudi::IDataConnection::disconnect |
( |
| ) |
|
|
pure virtual |
◆ fid()
| const std::string & Gaudi::IDataConnection::fid |
( |
| ) |
const |
|
inline |
Access file id.
Definition at line 62 of file IIODataManager.h.
std::string m_fid
File ID of the connection.
◆ isConnected()
| virtual bool Gaudi::IDataConnection::isConnected |
( |
| ) |
const |
|
pure virtual |
◆ name()
| const std::string & Gaudi::IDataConnection::name |
( |
| ) |
const |
|
inline |
◆ owner()
| const IInterface * Gaudi::IDataConnection::owner |
( |
| ) |
const |
|
inline |
◆ pfn()
| const std::string & Gaudi::IDataConnection::pfn |
( |
| ) |
const |
|
inline |
Access physical file name.
Definition at line 64 of file IIODataManager.h.
std::string m_pfn
Physical file name of the connection.
◆ read()
| virtual StatusCode Gaudi::IDataConnection::read |
( |
void *const | data, |
|
|
size_t | len ) |
|
pure virtual |
◆ resetAge()
| void Gaudi::IDataConnection::resetAge |
( |
| ) |
|
|
inline |
◆ seek()
| virtual long long int Gaudi::IDataConnection::seek |
( |
long long int | where, |
|
|
int | origin ) |
|
pure virtual |
◆ setFID()
| void Gaudi::IDataConnection::setFID |
( |
std::string | fid | ) |
|
|
inline |
Set file ID.
Definition at line 60 of file IIODataManager.h.
const std::string & fid() const
Access file id.
◆ setPFN()
| void Gaudi::IDataConnection::setPFN |
( |
std::string | fn | ) |
|
|
inline |
◆ write()
| virtual StatusCode Gaudi::IDataConnection::write |
( |
const void * | data, |
|
|
int | len ) |
|
pure virtual |
◆ m_age
| int Gaudi::IDataConnection::m_age = 0 |
|
protected |
◆ m_fid
| std::string Gaudi::IDataConnection::m_fid |
|
protected |
◆ m_name
| std::string Gaudi::IDataConnection::m_name |
|
protected |
◆ m_owner
| const IInterface* Gaudi::IDataConnection::m_owner = nullptr |
|
protected |
◆ m_pfn
| std::string Gaudi::IDataConnection::m_pfn |
|
protected |
The documentation for this class was generated from the following file: