Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

#include <largeobject.hxx>

List of all members.

Public Types

typedef CHAR char_type
typedef TRAITS traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type

Public Member Functions

 basic_olostream (dbtransaction &T, largeobject O, largeobject::size_type BufSize=512)
 Create a basic_olostream.
 basic_olostream (dbtransaction &T, oid O, largeobject::size_type BufSize=512)
 Create a basic_olostream.
 ~basic_olostream ()


Detailed Description

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

Output stream that writes data back to a large object.

Use this class exactly as you would any other ostream to write data to a large object. All formatting and streaming operations of std::ostream are supported. What you'll typically want to use, however, is the olostream typedef (which defines a basic_olostream for char). This is similar to how e.g. std::ofstream is related to std::basic_ofstream.

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


Member Typedef Documentation

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef CHAR pqxx::basic_olostream< CHAR, TRAITS >::char_type
 

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::int_type pqxx::basic_olostream< CHAR, TRAITS >::int_type
 

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::off_type pqxx::basic_olostream< CHAR, TRAITS >::off_type
 

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::pos_type pqxx::basic_olostream< CHAR, TRAITS >::pos_type
 

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef TRAITS pqxx::basic_olostream< CHAR, TRAITS >::traits_type
 


Constructor & Destructor Documentation

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
pqxx::basic_olostream< CHAR, TRAITS >::basic_olostream dbtransaction T,
largeobject  O,
largeobject::size_type  BufSize = 512
 

Create a basic_olostream.

Parameters:
T transaction in which this stream is to exist
O a large object to access
BufSize size of buffer to use internally (optional)

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
pqxx::basic_olostream< CHAR, TRAITS >::basic_olostream dbtransaction T,
oid  O,
largeobject::size_type  BufSize = 512
 

Create a basic_olostream.

Parameters:
T transaction in which this stream is to exist
O a large object to access
BufSize size of buffer to use internally (optional)

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


The documentation for this class was generated from the following file:
Generated on Mon Nov 15 11:28:03 2004 for libpqxx by  doxygen 1.3.9.1