Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
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
<>
24
class
into_type
<
blob
> :
public
standard_into_type
25
{
26
public
:
27
into_type
(
blob
& b) :
standard_into_type
(&b,
x_blob
) {}
28
into_type
(
blob
& b,
indicator
& ind)
29
:
standard_into_type
(&b,
x_blob
, ind) {}
30
};
31
32
template
<>
33
class
use_type
<
blob
> :
public
standard_use_type
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
<>
49
struct
exchange_traits
<
soci
::
blob
>
50
{
51
typedef
basic_type_tag
type_family
;
52
};
53
54
}
// namespace details
55
56
}
// namespace soci
57
58
#endif // SOCI_BLOB_EXCHANGE_H_INCLUDED
soci::blob
Definition:
blob.h:26
soci::details::standard_use_type
Definition:
use-type.h:40
soci::details::use_type< blob >::use_type
use_type(blob const &b, std::string const &name=std::string())
Definition:
blob-exchange.h:38
soci::details::standard_into_type
Definition:
into-type.h:51
into-type.h
soci::details::x_blob
Definition:
soci-backend.h:48
soci::details::into_type< blob >::into_type
into_type(blob &b)
Definition:
blob-exchange.h:27
soci::details::into_type< blob >::into_type
into_type(blob &b, indicator &ind)
Definition:
blob-exchange.h:28
soci::details::use_type
Definition:
use-type.h:142
soci::details::basic_type_tag
Definition:
exchange-traits.h:24
soci::details::use_type< blob >::use_type
use_type(blob &b, std::string const &name=std::string())
Definition:
blob-exchange.h:36
use-type.h
soci::indicator
indicator
Definition:
soci-backend.h:28
blob.h
soci::details::into_type
Definition:
into-type.h:117
soci::details::exchange_traits< soci::blob >::type_family
basic_type_tag type_family
Definition:
blob-exchange.h:51
soci::details::use_type< blob >::use_type
use_type(blob &b, indicator &ind, std::string const &name=std::string())
Definition:
blob-exchange.h:40
soci
Definition:
db2/common.h:15
soci::details::use_type< blob >::use_type
use_type(blob const &b, indicator &ind, std::string const &name=std::string())
Definition:
blob-exchange.h:43
soci::details::exchange_traits
Definition:
exchange-traits.h:28
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