| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 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
static void | checkAccessMode (DbAccessMode mode, DbDatabase &dbH)
## Variables
static pool::DbInstanceCount::Counter * | s_count

## Define Documentation

#define S_FAIL StatusCode::FAILURE

Definition at line 67 of file PoolDbCnvSvc.cpp.

#define S_OK StatusCode::SUCCESS

Definition at line 66 of file PoolDbCnvSvc.cpp.

## Typedef Documentation

typedef const std::string& CSTR

Definition at line 64 of file PoolDbCnvSvc.cpp.

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

Definition at line 63 of file PoolDbCnvSvc.cpp.

## Function Documentation

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

Definition at line 79 of file PoolDbCnvSvc.cpp.

    00079                                                                  {
    00080   DbAccessMode m = dbH.openMode();
    00081   if ( m&mode || m&pool::UPDATE || m&pool::RECREATE )  {
    00082     return;
    00083   }
    00084   std::string err =
    00085       "The dataset "+dbH.name()+" cannot be opened in mode "+
    00086       +pool::accessMode(mode)+
    00087       +"\nThe database was already open, but in mode "
    00088       +pool::accessMode(m);
    00089   throw std::runtime_error(err);
    00090 }

## Variable Documentation

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

Initial value:

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

Definition at line 58 of file PoolDbCnvSvc.cpp.