| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# IDataSourceMgr Class Reference

IDataSourceMgr interface definition. More...

`#include <GaudiKernel/IDataSourceMgr.h>`

Inheritance diagram for IDataSourceMgr:

[legend]
Collaboration diagram for IDataSourceMgr:

[legend]

List of all members.

## Public Member Functions
| DeclareInterfaceID (IDataSourceMgr, 2, 0)
| InterfaceID.
virtual bool | isConnected (const std::string &identifier) const =0
| Check if a datasource is connected.
virtual StatusCode | connect (const std::string &logon, std::string &identifier)=0
| Connect data source.
virtual StatusCode | connect (const std::string &logon)=0
| Connect data source.
virtual StatusCode | disconnect (const std::string &identifier)=0
| Disconnect data source.
virtual StatusCode | disconnectAll ()=0
| Close all open connections.

## Detailed Description

IDataSourceMgr interface definition.

Author:
  Markus Frank

Version:
  1.0

Definition at line 15 of file IDataSourceMgr.h.

## Member Function Documentation

IDataSourceMgr::DeclareInterfaceID | ( | IDataSourceMgr | ,
|  | 2 | ,
|  | 0 |  |
| ) |  |  |

InterfaceID.

virtual bool IDataSourceMgr::isConnected | ( | const std::string & | identifier | ) | const`[pure virtual]`

Check if a datasource is connected.

Parameters:

  | identifier | Connection string

Returns:
  Status code indicating success or failure.

virtual StatusCode IDataSourceMgr::connect | ( | const std::string & | logon,
|  | std::string & | identifier |
| ) |  |  | `[pure virtual]`

Connect data source.

Parameters:

  | mode | Connection mode (READ,CREATE,UPDATE)
  | logon | Connection string
  | identifier | Logical name (OUTPUT)

Returns:
  Status code indicating success or failure.

virtual StatusCode IDataSourceMgr::connect | ( | const std::string & | logon | ) | `[pure virtual]`

Connect data source.

Parameters:

  | mode | Connection mode (READ,CREATE,UPDATE)
  | logon | Connection string

Returns:
  Status code indicating success or failure.

virtual StatusCode IDataSourceMgr::disconnect | ( | const std::string & | identifier | ) | `[pure virtual]`

Disconnect data source.

Parameters:

  | identifier | Connection string

Returns:
  Status code indicating success or failure.

virtual StatusCode IDataSourceMgr::disconnectAll | ( |  | ) | `[pure virtual]`

Close all open connections.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7/GaudiKernel/GaudiKernel/IDataSourceMgr.h