| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Types | Public Member Functions

# Gaudi::IIODataManager Class Reference

`#include <IIODataManager.h>`

Inheritance diagram for Gaudi::IIODataManager:
[legend]
Collaboration diagram for Gaudi::IIODataManager:
[legend]

List of all members.

## Public Types
enum | FileType { UNKNOWN = 1, PFN, LFN, FID }
typedef IDataConnection | Connection
| Connection type definition.
typedef std::vector< Connection * > | Connections
typedef Connection::IoType | IoType
## Public Member Functions
| DeclareInterfaceID (IIODataManager, 2, 0)
| InterfaceID.
virtual StatusCode | connectRead (bool keep_open, IDataConnection *con)=0
| Open data stream in read mode.
virtual StatusCode | connectWrite (IDataConnection *con, IoType mode=Connection::CREATE, const std::string &doctype="UNKNOWN")=0
| Open data stream in write mode.
virtual StatusCode | disconnect (IDataConnection *con)=0
| Release data stream.
virtual Connection * | connection (const std::string &dsn) const =0
| Retrieve known connection.
virtual Connections | connections (const IInterface *owner) const =0
| Get connection by owner instance (0=ALL)
virtual StatusCode | read (IDataConnection *con, void *const data, size_t len)=0
| Read raw byte buffer from input stream.
virtual StatusCode | write (IDataConnection *con, const void *data, int len)=0
| Write raw byte buffer to output stream.
virtual long long int | seek (IDataConnection *con, long long int where, int origin)=0
| Seek on the file described by ioDesc. Arguments as in seek()

## Detailed Description

Author:
  M.Frank

Version:
  1.0

Date:
  20/10/2007

Author:
  M.Frank

Version:
  1.0

Date:
  20/10/2007

Author:
  R. Lambert

Date:
  03/09/2009

Definition at line 88 of file IIODataManager.h.

## Member Typedef Documentation

typedef IDataConnection Gaudi::IIODataManager::Connection

Connection type definition.

Definition at line 94 of file IIODataManager.h.

typedef std::vector<Connection*> Gaudi::IIODataManager::Connections

Definition at line 95 of file IIODataManager.h.

typedef Connection::IoType Gaudi::IIODataManager::IoType

Definition at line 96 of file IIODataManager.h.

## Member Enumeration Documentation

enum Gaudi::IIODataManager::FileType

Enumerator:

  UNKNOWN |
  PFN |
  LFN |
  FID |

Definition at line 97 of file IIODataManager.h.

    { UNKNOWN=1, PFN, LFN, FID };

## Member Function Documentation

virtual Connection* Gaudi::IIODataManager::connection | ( | const std::string & | dsn ) | const`[pure virtual]`

Retrieve known connection.

virtual Connections Gaudi::IIODataManager::connections | ( | const IInterface * | owner ) | const`[pure virtual]`

Get connection by owner instance (0=ALL)

virtual StatusCode Gaudi::IIODataManager::connectRead | ( | bool | keep_open,
|  | IDataConnection * | con
| ) |  | `[pure virtual]`

Open data stream in read mode.

virtual StatusCode Gaudi::IIODataManager::connectWrite | ( | IDataConnection * | con,
|  | IoType | mode = `Connection::CREATE`,
|  | const std::string & | doctype = `"UNKNOWN"`
| ) |  | `[pure virtual]`

Open data stream in write mode.

Gaudi::IIODataManager::DeclareInterfaceID | ( | IIODataManager | ,
|  | 2 | ,
|  | 0 |
| ) |  |

InterfaceID.

virtual StatusCode Gaudi::IIODataManager::disconnect | ( | IDataConnection * | con ) | `[pure virtual]`

Release data stream.

virtual StatusCode Gaudi::IIODataManager::read | ( | IDataConnection * | con,
|  | void *const | data,
|  | size_t | len
| ) |  | `[pure virtual]`

Read raw byte buffer from input stream.

virtual long long int Gaudi::IIODataManager::seek | ( | IDataConnection * | con,
|  | long long int | where,
|  | int | origin
| ) |  | `[pure virtual]`

Seek on the file described by ioDesc. Arguments as in seek()

virtual StatusCode Gaudi::IIODataManager::write | ( | IDataConnection * | con,
|  | const void * | data,
|  | int | len
| ) |  | `[pure virtual]`

Write raw byte buffer to output stream.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiUtils/GaudiUtils/IIODataManager.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines