| # Gaudi Framework, version v20r4
Generated: 8 Jan 2009

# PoolDbCnvSvc.cpp File Reference

`#include "GaudiKernel/MsgStream.h"`
`#include "GaudiKernel/strcasecmp.h"`
`#include "GaudiKernel/SvcFactory.h"`
`#include "GaudiKernel/CnvFactory.h"`
`#include "GaudiKernel/IRegistry.h"`
`#include "GaudiKernel/DataIncident.h"`
`#include "GaudiKernel/IIncidentSvc.h"`
`#include "GaudiKernel/IDataManagerSvc.h"`
`#include "GaudiKernel/IDataProviderSvc.h"`
`#include "GaudiPoolDb/IPoolCacheSvc.h"`
`#include "GaudiPoolDb/PoolDbCnvSvc.h"`
`#include "GaudiPoolDb/PoolDbAddress.h"`
`#include "GaudiPoolDb/PoolDbDataConnection.h"`
`#include "POOLCore/Token.h"`
`#include "StorageSvc/DbType.h"`
`#include "StorageSvc/DbObject.h"`
`#include "StorageSvc/DbSelect.h"`
`#include "StorageSvc/DataCallBack.h"`
`#include "StorageSvc/DbTypeInfo.h"`
`#include "StorageSvc/DbInstanceCount.h"`
`#include "StorageSvc/DbOptionCallback.h"`
`#include "GaudiUtils/IFileCatalog.h"`
`#include "GaudiUtils/IIODataManager.h"`
`#include "TInterpreter.h"`
`#include <sstream>`
`#include <set>`
`#include <memory>`

Include dependency graph for PoolDbCnvSvc.cpp:

Go to the source code of this file.

## Defines
#define | S_OK StatusCode::SUCCESS
#define | S_FAIL StatusCode::FAILURE
## Typedefs
typedef std::vector< std::string > | StringV
typedef const std::string & | CSTR
## Functions
| DECLARE_SERVICE_FACTORY (PoolDbCnvSvc)
static void | checkAccessMode (DbAccessMode mode, DbDatabase &dbH)
## Variables
static pool::DbInstanceCount::Counter * | s_count

## Define Documentation

#define S_FAIL StatusCode::FAILURE

Definition at line 58 of file PoolDbCnvSvc.cpp.

#define S_OK StatusCode::SUCCESS

Definition at line 57 of file PoolDbCnvSvc.cpp.

## Typedef Documentation

typedef const std::string& CSTR

Definition at line 55 of file PoolDbCnvSvc.cpp.

typedef std::vector<std::string> StringV

Definition at line 54 of file PoolDbCnvSvc.cpp.

## Function Documentation

static void checkAccessMode | ( | DbAccessMode | mode,
|  | DbDatabase & | dbH |
| ) |  |  | `[static]`

Definition at line 70 of file PoolDbCnvSvc.cpp.

    00070                                                                  {
    00071   DbAccessMode m = dbH.openMode();
    00072   if ( m&mode || m&pool::UPDATE || m&pool::RECREATE )  {
    00073     return;
    00074   }
    00075   std::string err =
    00076       "The dataset "+dbH.name()+" cannot be opened in mode "+
    00077       +pool::accessMode(mode)+
    00078       +"\nThe database was already open, but in mode "
    00079       +pool::accessMode(m);
    00080   throw std::runtime_error(err);
    00081 }

DECLARE_SERVICE_FACTORY | ( | PoolDbCnvSvc |  | ) |

## Variable Documentation

pool::DbInstanceCount::Counter* s_count`[static]`

Initial value:

      pool::DbInstanceCount::getCounter(typeid(PoolDbCnvSvc))

Definition at line 49 of file PoolDbCnvSvc.cpp.