libpqxx
|
Input stream that gets its data from a result field. More...
#include <field.hxx>
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_fieldstream (const field &F) | |
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 alias (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).
using pqxx::basic_fieldstream< CHAR, TRAITS >::char_type = CHAR |
using pqxx::basic_fieldstream< CHAR, TRAITS >::int_type = typename traits_type::int_type |
using pqxx::basic_fieldstream< CHAR, TRAITS >::off_type = typename traits_type::off_type |
using pqxx::basic_fieldstream< CHAR, TRAITS >::pos_type = typename traits_type::pos_type |
using pqxx::basic_fieldstream< CHAR, TRAITS >::traits_type = TRAITS |
pqxx::basic_fieldstream< CHAR, TRAITS >::basic_fieldstream | ( | const field & | F | ) |