NCBI C++ ToolKit
Classes | Macros | Functions
dbapi_svc_mapper.hpp File Reference
#include <dbapi/driver/dbapi_conn_factory.hpp>
#include <corelib/ncbimtx.hpp>
#include <connect/ext/ncbi_dblb_svcmapper.hpp>
#include <vector>
#include <set>
#include <map>
#include <random>
+ Include dependency graph for dbapi_svc_mapper.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CDBDefaultServiceMapper
 CDBDefaultServiceMapper. More...
 
class  CDBServiceMapperCoR
 CDBServiceMapperCoR. More...
 
class  CDBUDRandomMapper
 CDBUDRandomMapper. More...
 
struct  CDBUDRandomMapper::SPreferences
 
class  CDBUDPriorityMapper
 CDBUDPriorityMapper. More...
 
class  CDBUniversalMapper
 
class  CDBServiceMapperTraits< CDBDefaultServiceMapper >
 
class  CDBServiceMapperTraits< CDBServiceMapperCoR >
 
class  CDBServiceMapperTraits< CDBUDRandomMapper >
 
class  CDBServiceMapperTraits< CDBUDPriorityMapper >
 
class  CDBServiceMapperTraits< CDBUniversalMapper >
 

Macros

#define DBLB_INSTALL_FACTORY_EX(factory_name, if_set)
 Easy-to-use macro to install the default DBAPI service mapper and a user-defined connection factory, with control over what to do if a connection factory has already been explicitly registered. More...
 
#define DBLB_INSTALL_FACTORY(factory_name)    DBLB_INSTALL_FACTORY_EX(factory_name, eIfSet_Replace)
 Easy-to-use macro to install the default DBAPI service mapper and a user-defined connection factory. More...
 
#define DBLB_INSTALL_DEFAULT_EX(if_set)    DBLB_INSTALL_FACTORY_EX(ncbi::CDBConnectionFactory, if_set)
 Easy-to-use macro to install the default DBAPI service mapper, with control over what to do if a connection factory has already been explicitly registered. More...
 
#define DBLB_INSTALL_DEFAULT()   DBLB_INSTALL_DEFAULT_EX(eIfSet_Replace)
 Easy-to-use macro to install the default DBAPI service mapper. More...
 

Functions

IDBServiceMapperMakeCDBUniversalMapper (const IRegistry *registry)
 

Macro Definition Documentation

◆ DBLB_INSTALL_DEFAULT

#define DBLB_INSTALL_DEFAULT ( )    DBLB_INSTALL_DEFAULT_EX(eIfSet_Replace)

Easy-to-use macro to install the default DBAPI service mapper.

See also
DBLB_INSTALL_DEFAULT_EX, DBLB_INSTALL_FACTORY

Definition at line 311 of file dbapi_svc_mapper.hpp.

◆ DBLB_INSTALL_DEFAULT_EX

#define DBLB_INSTALL_DEFAULT_EX (   if_set)     DBLB_INSTALL_FACTORY_EX(ncbi::CDBConnectionFactory, if_set)

Easy-to-use macro to install the default DBAPI service mapper, with control over what to do if a connection factory has already been explicitly registered.

See also
DBLB_INSTALL_DEFAULT, DBLB_INSTALL_FACTORY_EX

Definition at line 306 of file dbapi_svc_mapper.hpp.

◆ DBLB_INSTALL_FACTORY

#define DBLB_INSTALL_FACTORY (   factory_name)     DBLB_INSTALL_FACTORY_EX(factory_name, eIfSet_Replace)

Easy-to-use macro to install the default DBAPI service mapper and a user-defined connection factory.

See also
DBLB_INSTALL_DEFAULT, DBLB_INSTALL_FACTORY_EX

Definition at line 299 of file dbapi_svc_mapper.hpp.

◆ DBLB_INSTALL_FACTORY_EX

#define DBLB_INSTALL_FACTORY_EX (   factory_name,
  if_set 
)
Value:
ncbi::CDbapiConnMgr::Instance().SetConnectionFactory( \
new factory_name(ncbi::MakeCDBUniversalMapper), \
ncbi::CDbapiConnMgr::if_set)
IDBServiceMapper * MakeCDBUniversalMapper(const IRegistry *registry)

Easy-to-use macro to install the default DBAPI service mapper and a user-defined connection factory, with control over what to do if a connection factory has already been explicitly registered.

See also
DBLB_INSTALL_DEFAULT_EX, DBLB_INSTALL_FACTORY

Definition at line 291 of file dbapi_svc_mapper.hpp.

Function Documentation

◆ MakeCDBUniversalMapper()

IDBServiceMapper* MakeCDBUniversalMapper ( const IRegistry registry)
inline

Definition at line 275 of file dbapi_svc_mapper.hpp.

References CDBLB_ServiceMapper::Factory(), and registry.

Modified on Tue Jul 16 13:23:36 2024 by modify_doxy.py rev. 669887