libpqxx
pqxx::basic_ilostream< CHAR, TRAITS > Class Template Reference

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

#include <largeobject.hxx>

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 BufSize=512)
 Create a basic_ilostream. More...
 
 basic_ilostream (dbtransaction &T, oid O, largeobject::size_type BufSize=512)
 Create a basic_ilostream. More...
 

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.

Use this class exactly as you would any other istream to read data from a large object. All formatting and streaming operations of std::istream are supported. What you'll typically want to use, however, is the ilostream alias (which defines a basic_ilostream for char). This is similar to how e.g. std::ifstream relates to std::basic_ifstream.

Currently only works for <char, std::char_traits<char>>.

Member Typedef Documentation

◆ char_type

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

◆ int_type

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
using pqxx::basic_ilostream< CHAR, TRAITS >::int_type = typename traits_type::int_type

◆ off_type

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
using pqxx::basic_ilostream< CHAR, TRAITS >::off_type = typename traits_type::off_type

◆ pos_type

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
using pqxx::basic_ilostream< CHAR, TRAITS >::pos_type = typename traits_type::pos_type

◆ traits_type

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

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  BufSize = 512 
)

Create a basic_ilostream.

Parameters
TTransaction in which this stream is to exist
OLarge object to access
BufSizeSize 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  BufSize = 512 
)

Create a basic_ilostream.

Parameters
TTransaction in which this stream is to exist
OIdentifier of a large object to access
BufSizeSize of buffer to use internally (optional)

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