FBB::IFdStreambuf(3bobcat)

File Descriptor Input Stream Buffer
(libbobcat-dev_4.08.03-x.tar.gz)

2005-2018

NAME

FBB::IFdStreambuf - Input stream buffer initialized by a file descriptor

SYNOPSIS

#include <bobcat/ifdstreambuf>
Linking option: -lbobcat

DESCRIPTION

FBB::IFdStreambuf objects may be used as a std::streambuf of std::istream objects to allow extractions from a file descriptor.

File descriptors are not defined within the context of C++, but they can be used on operating systems that support the concept. Realize that using file descriptors introduces operating system dependencies.

NAMESPACE

FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

std::streambuf

ENUMERATION

The public enumeration Mode defined in the class FBB::IFdStreamBuf has the following values:

CONSTRUCTORS

There is no copy constructor.

MEMBER FUNCTIONS

All members of std::streambuf are available, as FBB::IFdStreambuf inherits from this class. Some of the std::streambuf's member are overridden by FBB::IFdStreambuf, see below.

Note that there is no overloaded assignment operator available for this class.

EXAMPLE

To do

FILES

bobcat/ifdstreambuf - defines the class interface

SEE ALSO

bobcat(7), ifdstream(3bobcat), ofdstreambuf(3bobcat), std::streambuf

BUGS

The member xsgetn(char *dest, std::streamsize n) will set istream::good() to false when fewer bytes than n were read using istream::read(). Also see xsgetn's description.

Note that by default the provided file descriptors remain open. The complementary class ofdstreambuf(3bobcat) closes the file descriptor by default. This inconsistency was deliberately accepted to keep the classes interfaces backward compatible.

DISTRIBUTION FILES

BOBCAT

Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken (f.b.brokken@rug.nl).