FBB::IOBuf(3bobcat) | Streambuf doing I/O | FBB::IOBuf(3bobcat) |
FBB::IOBuf - streambuf allowing input and output operations
#include <bobcat/iobuf>
Linking option: -lbobcat
This class implements a specialization of the std::streambuf class, allowing input operations from and output operations to different files. It is intended to be used in combination with FBB::IOStream, thus allowing all stream-based input and output operations using the same object without the need to use seek-operations. Using an FBB::IOStream object it is, e.g., possible to construct two-way communications using pipes, much like the facilities offered by sockets.
If the streams that will be associated with the IOBuf object support seeking, then the IOBuf will do so to. Seeking might also be available for a single stream (either the std::istream or the std::ostream).
When the IOBuf object goes out of scope, its associated std::ostream object is flushed.
FBB
All constructors, members, operators and manipulators, mentioned in this
man-page, are defined in the namespace FBB.
std::streambuf
Copy and move constructors (and assignment operators) are not available.
All members of std::streambuf are available, as FBB::IOBuf inherits from these classes.
The following std::streambuf member functions should only be called when the FBB::Streambuf object is associated with std::istream and std::ostream objects (i.e., they should not be called between the construction of a default FBB:IOBuf object and a subsequent call of IOBuf::open()):
The members listed in this section implement the tasks of comparably named virtual function in the class’s private interface. This separates the redefinable interface from the user-interface. The class IOStreamBuf can, in accordance with Liskov’s Substitution Principle, be used as a std:streambuf; but it also offers facilities for classes deriving from IOStreamBuf. These facilities are listed here.
See the example provided with process(3bobcat).
bobcat/iobuf - defines the class interface
None reported.
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
This is free software, distributed under the terms of the GNU General Public License (GPL).
Frank B. Brokken (f.b.brokken@rug.nl).
2005-2022 | libbobcat-dev_6.02.02 |