libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pqxx::basic_fieldstream< CHAR, TRAITS > Class Template Reference

Input stream that gets its data from a result field. More...

#include <field.hxx>

Inheritance diagram for pqxx::basic_fieldstream< CHAR, TRAITS >:
Collaboration diagram for pqxx::basic_fieldstream< CHAR, TRAITS >:

Public Types

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

Public Member Functions

 basic_fieldstream (const field &F)
 

Private Types

typedef PGSTD::istream super
 

Private Attributes

field_streambuf< CHAR, TRAITS > m_Buf
 

Detailed Description

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

Input stream that gets its data from a result field.

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

This class has only been tested for the char type (and its default traits).

Member Typedef Documentation

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef CHAR pqxx::basic_fieldstream< CHAR, TRAITS >::char_type
template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::int_type pqxx::basic_fieldstream< CHAR, TRAITS >::int_type
template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::off_type pqxx::basic_fieldstream< CHAR, TRAITS >::off_type
template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef traits_type::pos_type pqxx::basic_fieldstream< CHAR, TRAITS >::pos_type
template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef PGSTD::istream pqxx::basic_fieldstream< CHAR, TRAITS >::super
private
template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
typedef TRAITS pqxx::basic_fieldstream< CHAR, TRAITS >::traits_type

Constructor & Destructor Documentation

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
pqxx::basic_fieldstream< CHAR, TRAITS >::basic_fieldstream ( const field F)
inline

Member Data Documentation

template<typename CHAR = char, typename TRAITS = PGSTD::char_traits<CHAR>>
field_streambuf<CHAR, TRAITS> pqxx::basic_fieldstream< CHAR, TRAITS >::m_Buf
private

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