| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Defines | Typedefs | Functions | Variables

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

#define S_OK StatusCode::SUCCESS

Definition at line 72 of file PoolDbCnvSvc.cpp.

## Typedef Documentation

typedef const std::string& CSTR

Definition at line 70 of file PoolDbCnvSvc.cpp.

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

Definition at line 69 of file PoolDbCnvSvc.cpp.

## Function Documentation

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

Definition at line 85 of file PoolDbCnvSvc.cpp.

                                                                     {
      DbAccessMode m = dbH.openMode();
      if ( (m & mode) || (m & pool::UPDATE) || (m & pool::RECREATE) )  {
        return;
      }
      std::string err =
          "The dataset "+dbH.name()+" cannot be opened in mode "+
          +pool::accessMode(mode)+
          +"\nThe database was already open, but in mode "
          +pool::accessMode(m);
      throw std::runtime_error(err);
    }

## Variable Documentation

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

Initial value:

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

Definition at line 64 of file PoolDbCnvSvc.cpp.

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