Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
db2
db2/factory.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2011-2013 Denis Chapligin
3
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
4
// Distributed under the Boost Software License, Version 1.0.
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
// http://www.boost.org/LICENSE_1_0.txt)
7
//
8
9
#define SOCI_DB2_SOURCE
10
#include "
soci-db2.h
"
11
#include <
backend-loader.h
>
12
13
using namespace
soci
;
14
using namespace
soci::details
;
15
16
17
// concrete factory for ODBC concrete strategies
18
db2_session_backend
*
db2_backend_factory::make_session
(
19
connection_parameters
const
&
parameters
)
const
20
{
21
return
new
db2_session_backend
(parameters);
22
}
23
24
db2_backend_factory
const
soci::db2
;
25
26
extern
"C"
27
{
28
29
// for dynamic backend loading
30
SOCI_DB2_DECL
backend_factory
const
*
factory_db2
()
31
{
32
return
&
soci::db2
;
33
}
34
35
SOCI_DB2_DECL
void
register_factory_db2
()
36
{
37
soci::dynamic_backends::register_backend
(
"db2"
, soci::db2);
38
}
39
40
}
// extern "C"
SOCI_DB2_DECL
#define SOCI_DB2_DECL
Definition:
soci-db2.h:24
soci::details
Definition:
db2/common.h:15
soci::db2_backend_factory::make_session
db2_session_backend * make_session(connection_parameters const ¶meters) const
Definition:
db2/factory.cpp:18
backend-loader.h
soci::db2_backend_factory
Definition:
soci-db2.h:262
soci::dynamic_backends::register_backend
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
Definition:
backend-loader.cpp:287
soci::register_factory_db2
SOCI_DB2_DECL void register_factory_db2()
Definition:
db2/factory.cpp:35
soci-db2.h
soci::connection_parameters
Definition:
connection-parameters.h:22
soci::factory_db2
SOCI_DB2_DECL backend_factory const * factory_db2()
Definition:
db2/factory.cpp:30
soci::db2
SOCI_DB2_DECL db2_backend_factory const db2
Definition:
db2/factory.cpp:24
parameters
std::vector< ISM::CombinatorialTrainerParameters > parameters
Definition:
combinatorialTrainerEvaluator.cpp:39
soci
Definition:
db2/common.h:15
soci::backend_factory
Definition:
soci-backend.h:265
soci::db2_session_backend
Definition:
soci-db2.h:231
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40