Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
ref-counted-prepare-info.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2008 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
#ifndef SOCI_REF_COUNTED_PREPARE_INFO_INCLUDED
9
#define SOCI_REF_COUNTED_PREPARE_INFO_INCLUDED
10
11
#include "
bind-values.h
"
12
#include "
ref-counted-statement.h
"
13
14
// std
15
#include <string>
16
#include <vector>
17
18
namespace
soci
19
{
20
21
class
session;
22
23
namespace
details
24
{
25
26
class
procedure_impl;
27
class
statement_impl;
28
class
into_type_base;
29
30
// this class conveys only the statement text and the bind/define info
31
// it exists only to be passed to statement's constructor
32
class
ref_counted_prepare_info
:
public
ref_counted_statement_base
33
{
34
public
:
35
ref_counted_prepare_info
(
session
& s)
36
:
ref_counted_statement_base
(s)
37
,
session_
(s)
38
{}
39
40
void
exchange
(
use_type_ptr
const
& u) {
uses_
.
exchange
(u); }
41
42
template
<
typename
T,
typename
Indicator>
43
void
exchange
(
use_container<T, Indicator>
const
&uc)
44
{
uses_
.
exchange
(uc); }
45
46
void
exchange
(
into_type_ptr
const
& i) {
intos_
.
exchange
(i); }
47
48
template
<
typename
T,
typename
Indicator>
49
void
exchange
(
into_container<T, Indicator>
const
&ic)
50
{
intos_
.
exchange
(ic); }
51
52
void
final_action
();
53
54
private
:
55
friend
class
statement_impl
;
56
friend
class
procedure_impl
;
57
58
session
&
session_
;
59
60
into_type_vector
intos_
;
61
use_type_vector
uses_
;
62
63
std::string
get_query
()
const
;
64
};
65
66
}
// namespace details
67
68
}
// namespace soci
69
70
#endif
soci::details::procedure_impl
Definition:
procedure.h:19
soci::details::use_type_vector::exchange
void exchange(use_type_ptr const &u)
Definition:
bind-values.h:33
soci::details::ref_counted_statement_base
Definition:
ref-counted-statement.h:24
soci::details::into_type_vector
Definition:
bind-values.h:109
soci::details::ref_counted_prepare_info::ref_counted_prepare_info
ref_counted_prepare_info(session &s)
Definition:
ref-counted-prepare-info.h:35
soci::details::ref_counted_prepare_info::get_query
std::string get_query() const
Definition:
ref-counted-prepare-info.cpp:31
soci::details::ref_counted_prepare_info::session_
session & session_
Definition:
ref-counted-prepare-info.h:58
soci::details::ref_counted_prepare_info::final_action
void final_action()
Definition:
ref-counted-prepare-info.cpp:15
soci::details::use_container
Definition:
use.h:19
soci::session
Definition:
session.h:40
soci::details::ref_counted_prepare_info::exchange
void exchange(into_container< T, Indicator > const &ic)
Definition:
ref-counted-prepare-info.h:49
soci::details::ref_counted_prepare_info::uses_
use_type_vector uses_
Definition:
ref-counted-prepare-info.h:61
bind-values.h
soci::details::into_container
Definition:
into.h:28
soci::details::ref_counted_prepare_info::exchange
void exchange(use_type_ptr const &u)
Definition:
ref-counted-prepare-info.h:40
soci::details::ref_counted_prepare_info::intos_
into_type_vector intos_
Definition:
ref-counted-prepare-info.h:60
soci::details::ref_counted_prepare_info
Definition:
ref-counted-prepare-info.h:32
soci::details::statement_impl
Definition:
statement.h:37
soci::details::ref_counted_prepare_info::exchange
void exchange(into_type_ptr const &i)
Definition:
ref-counted-prepare-info.h:46
soci::details::into_type_vector::exchange
void exchange(into_type_ptr const &i)
Definition:
bind-values.h:119
soci::details::type_ptr
Definition:
type-ptr.h:14
soci
Definition:
db2/common.h:15
soci::details::use_type_vector
Definition:
bind-values.h:23
ref-counted-statement.h
soci::details::ref_counted_prepare_info::exchange
void exchange(use_container< T, Indicator > const &uc)
Definition:
ref-counted-prepare-info.h:43
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