Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
odbc
odbc/factory.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
3
// Distributed under the Boost Software License, Version 1.0.
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
// http://www.boost.org/LICENSE_1_0.txt)
6
//
7
8
#define SOCI_ODBC_SOURCE
9
#include "
soci-odbc.h
"
10
#include <
backend-loader.h
>
11
12
using namespace
soci
;
13
using namespace
soci::details
;
14
15
16
// concrete factory for ODBC concrete strategies
17
odbc_session_backend
*
odbc_backend_factory::make_session
(
18
connection_parameters
const
&
parameters
)
const
19
{
20
return
new
odbc_session_backend
(parameters);
21
}
22
23
odbc_backend_factory
const
soci::odbc
;
24
25
extern
"C"
26
{
27
28
// for dynamic backend loading
29
SOCI_ODBC_DECL
backend_factory
const
*
factory_odbc
()
30
{
31
return
&
soci::odbc
;
32
}
33
34
SOCI_ODBC_DECL
void
register_factory_odbc
()
35
{
36
soci::dynamic_backends::register_backend
(
"odbc"
, soci::odbc);
37
}
38
39
}
// extern "C"
soci::register_factory_odbc
SOCI_ODBC_DECL void register_factory_odbc()
Definition:
odbc/factory.cpp:34
soci::odbc_backend_factory::make_session
virtual odbc_session_backend * make_session(connection_parameters const ¶meters) const
Definition:
odbc/factory.cpp:17
soci::details
Definition:
db2/common.h:15
backend-loader.h
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_ODBC_DECL
#define SOCI_ODBC_DECL
Definition:
soci-odbc.h:23
soci::odbc
SOCI_ODBC_DECL odbc_backend_factory const odbc
Definition:
odbc/factory.cpp:23
soci::odbc_backend_factory
Definition:
soci-odbc.h:423
soci::connection_parameters
Definition:
connection-parameters.h:22
soci::odbc_session_backend
Definition:
soci-odbc.h:269
soci::factory_odbc
SOCI_ODBC_DECL backend_factory const * factory_odbc()
Definition:
odbc/factory.cpp:29
soci-odbc.h
parameters
std::vector< ISM::CombinatorialTrainerParameters > parameters
Definition:
combinatorialTrainerEvaluator.cpp:39
soci
Definition:
db2/common.h:15
soci::backend_factory
Definition:
soci-backend.h:265
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