ofdstream3bobcat
Output stream initialized by a file descriptor
Usage
#include <bobcat/ofdstream>
Overview
FBB::OFdStream objects may be used to insert information into a device whose file descriptor is available.
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.
Note that sockets can be used as file descriptors.
Namespace
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
Inherits from
std::ostream
Constructors
- o
-
OFdStream(int fd, size_t n = 1):
The constructor initializes the object to write to descriptor fd, using a buffer of size n, by default having size 1.
Copy and move constructors (and assignment operators) are not available.
Member functions
All members of std::ostream are available, as FBB::OFdStream inherits from this class. There are no additional members.
Examples
See the clientsocket(3bobcat) man-page for an example showing how to use OFdStream.
Files
bobcat/ofdstream - defines the class interface
Bobcat project files
- o
-
https://fbb-git.gitlab.io/bobcat/: gitlab project page;
Debian Bobcat project files:
- o
-
libbobcat6: debian package containing the shared library, changelog and copyright note;
- o
-
libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;
Bobcat
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.