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
33 {
34 public:
37  , session_(s)
38  {}
39 
40  void exchange(use_type_ptr const& u) { uses_.exchange(u); }
41 
42  template <typename T, typename Indicator>
44  { uses_.exchange(uc); }
45 
46  void exchange(into_type_ptr const& i) { intos_.exchange(i); }
47 
48  template <typename T, typename Indicator>
50  { intos_.exchange(ic); }
51 
52  void final_action();
53 
54 private:
55  friend class statement_impl;
56  friend class procedure_impl;
57 
59 
62 
63  std::string get_query() const;
64 };
65 
66 } // namespace details
67 
68 } // namespace soci
69 
70 #endif
void exchange(use_type_ptr const &u)
Definition: bind-values.h:33
void exchange(into_container< T, Indicator > const &ic)
void exchange(into_type_ptr const &i)
Definition: bind-values.h:119
void exchange(use_container< T, Indicator > const &uc)


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