| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# 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 57 of file PoolDbCnvSvc.cpp.

#define S_OK StatusCode::SUCCESS

Definition at line 56 of file PoolDbCnvSvc.cpp.

## Typedef Documentation

typedef const std::string& CSTR

Definition at line 54 of file PoolDbCnvSvc.cpp.

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

Definition at line 53 of file PoolDbCnvSvc.cpp.

## Function Documentation

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

Definition at line 69 of file PoolDbCnvSvc.cpp.

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

DECLARE_SERVICE_FACTORY | ( | PoolDbCnvSvc |  | ) |

## Variable Documentation

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

Initial value:

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

Definition at line 48 of file PoolDbCnvSvc.cpp.