libpqxx  7.9.0
pqxx::basic_olostream< CHAR, TRAITS > Class Template Reference

Output stream that writes data back to a large object. More...

#include <largeobject.hxx>

Inheritance diagram for pqxx::basic_olostream< 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_olostream (dbtransaction &t, largeobject o, largeobject::size_type buf_size=512)
 Create a basic_olostream. More...
 
 basic_olostream (dbtransaction &t, oid o, largeobject::size_type buf_size=512)
 Create a basic_olostream. More...
 
 ~basic_olostream ()
 

Detailed Description

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

Output stream that writes data back to a large object.

Deprecated:
Access large objects directly using the blob class.

This worked like any other ostream, but to write data to a large object. It supported all formatting and streaming operations of std::ostream.

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

Member Typedef Documentation

◆ char_type

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

◆ int_type

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

◆ off_type

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

◆ pos_type

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

◆ traits_type

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

Constructor & Destructor Documentation

◆ basic_olostream() [1/2]

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

Create a basic_olostream.

Parameters
ttransaction in which this stream is to exist.
oa large object to access.
buf_sizesize of buffer to use internally (optional).

References pqxx::binary.

◆ basic_olostream() [2/2]

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

Create a basic_olostream.

Parameters
ttransaction in which this stream is to exist.
oa large object to access.
buf_sizesize of buffer to use internally (optional).

References pqxx::binary.

◆ ~basic_olostream()

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
pqxx::basic_olostream< CHAR, TRAITS >::~basic_olostream ( )

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