blob-exchange.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_BLOB_EXCHANGE_H_INCLUDED
9 #define SOCI_BLOB_EXCHANGE_H_INCLUDED
10 
11 #include "blob.h"
12 #include "into-type.h"
13 #include "use-type.h"
14 // std
15 #include <string>
16 
17 namespace soci
18 {
19 
20 namespace details
21 {
22 
23 template <>
25 {
26 public:
28  into_type(blob & b, indicator & ind)
29  : standard_into_type(&b, x_blob, ind) {}
30 };
31 
32 template <>
34 {
35 public:
36  use_type(blob & b, std::string const & name = std::string())
37  : standard_use_type(&b, x_blob, false, name) {}
38  use_type(blob const & b, std::string const & name = std::string())
39  : standard_use_type(const_cast<blob *>(&b), x_blob, true, name) {}
40  use_type(blob & b, indicator & ind,
41  std::string const & name = std::string())
42  : standard_use_type(&b, x_blob, ind, false, name) {}
43  use_type(blob const & b, indicator & ind,
44  std::string const & name = std::string())
45  : standard_use_type(const_cast<blob *>(&b), x_blob, ind, true, name) {}
46 };
47 
48 template <>
50 {
52 };
53 
54 } // namespace details
55 
56 } // namespace soci
57 
58 #endif // SOCI_BLOB_EXCHANGE_H_INCLUDED
use_type(blob const &b, std::string const &name=std::string())
Definition: blob-exchange.h:38
into_type(blob &b, indicator &ind)
Definition: blob-exchange.h:28
use_type(blob &b, std::string const &name=std::string())
Definition: blob-exchange.h:36
use_type(blob &b, indicator &ind, std::string const &name=std::string())
Definition: blob-exchange.h:40
use_type(blob const &b, indicator &ind, std::string const &name=std::string())
Definition: blob-exchange.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