libpqxx
5.0
|
Streambuf to use large objects in standard I/O streams. More...
#include <largeobject.hxx>
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 |
typedef largeobjectaccess::openmode | openmode |
typedef largeobjectaccess::seekdir | seekdir |
Public Member Functions | |
largeobject_streambuf (dbtransaction &T, largeobject O, openmode mode=std::ios::in|std::ios::out, size_type BufSize=512) | |
largeobject_streambuf (dbtransaction &T, oid O, openmode mode=std::ios::in|std::ios::out, size_type BufSize=512) | |
virtual | ~largeobject_streambuf () PQXX_NOEXCEPT |
void | process_notice (const std::string &s) |
For use by large object stream classes. More... | |
Protected Member Functions | |
virtual int | sync () PQXX_OVERRIDE |
virtual pos_type | seekoff (off_type offset, seekdir dir, openmode) PQXX_OVERRIDE |
virtual pos_type | seekpos (pos_type pos, openmode) PQXX_OVERRIDE |
virtual int_type | overflow (int_type ch=EoF()) PQXX_OVERRIDE |
virtual int_type | underflow () PQXX_OVERRIDE |
Streambuf to use large objects in standard I/O streams.
The standard streambuf classes provide uniform access to data storage such as files or string buffers, so they can be accessed using standard input or output streams. This streambuf implementation provides similar access to large objects, so they can be read and written using the same stream classes.
typedef CHAR pqxx::largeobject_streambuf< CHAR, TRAITS >::char_type |
typedef traits_type::int_type pqxx::largeobject_streambuf< CHAR, TRAITS >::int_type |
typedef traits_type::off_type pqxx::largeobject_streambuf< CHAR, TRAITS >::off_type |
typedef largeobjectaccess::openmode pqxx::largeobject_streambuf< CHAR, TRAITS >::openmode |
typedef traits_type::pos_type pqxx::largeobject_streambuf< CHAR, TRAITS >::pos_type |
typedef largeobjectaccess::seekdir pqxx::largeobject_streambuf< CHAR, TRAITS >::seekdir |
typedef TRAITS pqxx::largeobject_streambuf< CHAR, TRAITS >::traits_type |
pqxx::largeobject_streambuf< CHAR, TRAITS >::largeobject_streambuf | ( | dbtransaction & | T, |
largeobject | O, | ||
openmode | mode = std::ios::in|std::ios::out , |
||
size_type | BufSize = 512 |
||
) |
pqxx::largeobject_streambuf< CHAR, TRAITS >::largeobject_streambuf | ( | dbtransaction & | T, |
oid | O, | ||
openmode | mode = std::ios::in|std::ios::out , |
||
size_type | BufSize = 512 |
||
) |
|
virtual |
|
protectedvirtual |
void pqxx::largeobject_streambuf< CHAR, TRAITS >::process_notice | ( | const std::string & | s | ) |
For use by large object stream classes.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |