blob.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_H_INCLUDED
9 #define SOCI_BLOB_H_INCLUDED
10 
11 #include "soci-config.h"
12 // std
13 #include <cstddef>
14 
15 namespace soci
16 {
17 // basic blob operations
18 
19 class session;
20 
21 namespace details
22 {
23 class blob_backend;
24 } // namespace details
25 
27 {
28 public:
29  explicit blob(session & s);
30  ~blob();
31 
32  std::size_t get_len();
33  std::size_t read(std::size_t offset, char * buf, std::size_t toRead);
34  std::size_t write(std::size_t offset, char const * buf,
35  std::size_t toWrite);
36  std::size_t append(char const * buf, std::size_t toWrite);
37  void trim(std::size_t newLen);
38 
39  details::blob_backend * get_backend() { return backEnd_; }
40 
41 private:
43 };
44 
45 } // namespace soci
46 
47 #endif
#define SOCI_DECL
Definition: soci-config.h:31
details::blob_backend * backEnd_
Definition: blob.h:42
details::blob_backend * get_backend()
Definition: blob.h:39


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