Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
empty
empty/factory.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
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_EMPTY_SOURCE
9
#include "
soci-empty.h
"
10
#include <
backend-loader.h
>
11
12
#ifdef _MSC_VER
13
#pragma warning(disable:4355)
14
#endif
15
16
using namespace
soci
;
17
using namespace
soci::details
;
18
19
// concrete factory for Empty concrete strategies
20
empty_session_backend
*
empty_backend_factory::make_session
(
21
connection_parameters
const
&
parameters
)
const
22
{
23
return
new
empty_session_backend
(parameters);
24
}
25
26
empty_backend_factory
const
soci::empty
;
27
28
extern
"C"
29
{
30
31
// for dynamic backend loading
32
SOCI_EMPTY_DECL
backend_factory
const
*
factory_empty
()
33
{
34
return
&
soci::empty
;
35
}
36
37
SOCI_EMPTY_DECL
void
register_factory_empty
()
38
{
39
soci::dynamic_backends::register_backend
(
"empty"
, soci::empty);
40
}
41
42
}
// extern "C"
soci::empty_backend_factory::make_session
empty_session_backend * make_session(connection_parameters const ¶meters) const
Definition:
empty/factory.cpp:20
soci::details
Definition:
db2/common.h:15
soci::empty
SOCI_EMPTY_DECL empty_backend_factory const empty
Definition:
empty/factory.cpp:26
soci-empty.h
soci::empty_session_backend
Definition:
soci-empty.h:155
backend-loader.h
soci::register_factory_empty
SOCI_EMPTY_DECL void register_factory_empty()
Definition:
empty/factory.cpp:37
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_EMPTY_DECL
#define SOCI_EMPTY_DECL
Definition:
soci-empty.h:23
soci::empty_backend_factory
Definition:
soci-empty.h:174
soci::connection_parameters
Definition:
connection-parameters.h:22
parameters
std::vector< ISM::CombinatorialTrainerParameters > parameters
Definition:
combinatorialTrainerEvaluator.cpp:39
soci
Definition:
db2/common.h:15
soci::factory_empty
SOCI_EMPTY_DECL backend_factory const * factory_empty()
Definition:
empty/factory.cpp:32
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