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 <>
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 <>
42 {
43 public:
45  into_type(rowid & rid, indicator & ind)
46  :standard_into_type(&rid, x_rowid, ind) {}
47 };
48 
49 template <>
51 {
53 };
54 
55 } // namespace details
56 
57 } // namespace soci
58 
59 #endif // SOCI_ROWID_EXCHANGE_H_INCLUDED
use_type(rowid const &rid, indicator &ind, std::string const &name=std::string())
into_type(rowid &rid, indicator &ind)
use_type(rowid const &rid, std::string const &name=std::string())
use_type(rowid &rid, std::string const &name=std::string())
use_type(rowid &rid, indicator &ind, std::string const &name=std::string())


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