Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
rowid-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_ROWID_EXCHANGE_H_INCLUDED
9
#define SOCI_ROWID_EXCHANGE_H_INCLUDED
10
11
#include "
rowid.h
"
12
#include "
into-type.h
"
13
#include "
use-type.h
"
14
#include "
exchange-traits.h
"
15
// std
16
#include <string>
17
18
namespace
soci
19
{
20
21
namespace
details
22
{
23
24
template
<>
25
class
use_type
<
rowid
> :
public
standard_use_type
26
{
27
public
:
28
use_type
(
rowid
& rid, std::string
const
& name = std::string())
29
:
standard_use_type
(&rid,
x_rowid
, false, name) {}
30
use_type
(
rowid
const
& rid, std::string
const
& name = std::string())
31
:
standard_use_type
(const_cast<
rowid
*>(&rid),
x_rowid
, true, name) {}
32
use_type
(
rowid
& rid,
indicator
& ind,
33
std::string
const
& name = std::string())
34
:
standard_use_type
(&rid,
x_rowid
, ind, false, name) {}
35
use_type
(
rowid
const
& rid,
indicator
& ind,
36
std::string
const
& name = std::string())
37
:
standard_use_type
(const_cast<
rowid
*>(&rid),
x_rowid
, ind, true, name) {}
38
};
39
40
template
<>
41
class
into_type
<
rowid
> :
public
standard_into_type
42
{
43
public
:
44
into_type
(
rowid
& rid) :
standard_into_type
(&rid,
x_rowid
) {}
45
into_type
(
rowid
& rid,
indicator
& ind)
46
:
standard_into_type
(&rid,
x_rowid
, ind) {}
47
};
48
49
template
<>
50
struct
exchange_traits
<
soci
::
rowid
>
51
{
52
typedef
basic_type_tag
type_family
;
53
};
54
55
}
// namespace details
56
57
}
// namespace soci
58
59
#endif // SOCI_ROWID_EXCHANGE_H_INCLUDED
soci::details::use_type< rowid >::use_type
use_type(rowid const &rid, indicator &ind, std::string const &name=std::string())
Definition:
rowid-exchange.h:35
soci::details::standard_use_type
Definition:
use-type.h:40
soci::details::standard_into_type
Definition:
into-type.h:51
soci::details::into_type< rowid >::into_type
into_type(rowid &rid, indicator &ind)
Definition:
rowid-exchange.h:45
into-type.h
soci::details::use_type< rowid >::use_type
use_type(rowid const &rid, std::string const &name=std::string())
Definition:
rowid-exchange.h:30
soci::details::exchange_traits< soci::rowid >::type_family
basic_type_tag type_family
Definition:
rowid-exchange.h:52
soci::details::use_type
Definition:
use-type.h:142
exchange-traits.h
soci::details::basic_type_tag
Definition:
exchange-traits.h:24
use-type.h
soci::details::use_type< rowid >::use_type
use_type(rowid &rid, std::string const &name=std::string())
Definition:
rowid-exchange.h:28
soci::details::use_type< rowid >::use_type
use_type(rowid &rid, indicator &ind, std::string const &name=std::string())
Definition:
rowid-exchange.h:32
soci::indicator
indicator
Definition:
soci-backend.h:28
rowid.h
soci::details::x_rowid
Definition:
soci-backend.h:47
soci::details::into_type
Definition:
into-type.h:117
soci::rowid
Definition:
rowid.h:27
soci
Definition:
db2/common.h:15
soci::details::into_type< rowid >::into_type
into_type(rowid &rid)
Definition:
rowid-exchange.h:44
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