libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
pqxx::basic_ilostream< CHAR, TRAITS > Class Template Reference

Input stream that gets its data from a large object. More...

+ Inheritance diagram for pqxx::basic_ilostream< CHAR, TRAITS >:

Public Types

using char_type = CHAR
 
using traits_type = TRAITS
 
using int_type = typename traits_type::int_type
 
using pos_type = typename traits_type::pos_type
 
using off_type = typename traits_type::off_type
 

Public Member Functions

 basic_ilostream (dbtransaction &t, largeobject o, largeobject::size_type buf_size=512)
 Create a basic_ilostream.
 
 basic_ilostream (dbtransaction &t, oid o, largeobject::size_type buf_size=512)
 Create a basic_ilostream.
 

Detailed Description

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
class pqxx::basic_ilostream< CHAR, TRAITS >

Input stream that gets its data from a large object.

Deprecated:
Access large objects directly using the blob class.

This class worked like any other istream, but to read data from a large object. It supported all formatting and streaming operations of std::istream.

This functionality was considered too fragile and complex, so it has been replaced with a single, much simpler class.

Constructor & Destructor Documentation

◆ basic_ilostream() [1/2]

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
pqxx::basic_ilostream< CHAR, TRAITS >::basic_ilostream ( dbtransaction t,
largeobject  o,
largeobject::size_type  buf_size = 512 
)
inline

Create a basic_ilostream.

Parameters
tTransaction in which this stream is to exist.
oLarge object to access.
buf_sizeSize of buffer to use internally (optional).

◆ basic_ilostream() [2/2]

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
pqxx::basic_ilostream< CHAR, TRAITS >::basic_ilostream ( dbtransaction t,
oid  o,
largeobject::size_type  buf_size = 512 
)
inline

Create a basic_ilostream.

Parameters
tTransaction in which this stream is to exist.
oIdentifier of a large object to access.
buf_sizeSize of buffer to use internally (optional).

The documentation for this class was generated from the following file: