logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

FBB::Ofdstream - Output Stream initialized by a File Descriptor

Author

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

libbobcat-dev_6.07.01                               2005-2025                            FBB::OFdStream(3bobcat)

Bobcat

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

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;

Bugs

       The OFdStream object uses an OFdBuf for its std::streambuf. This  buffer  is  associated  with  the  file
       descriptor  passed  to  OFdStream’s  constructor.  When the OFdStream object goes out of scope the device
       (file, socket, etc.) to which the file descriptor that was  passed  to  OFdStream’s  constructor  is  not
       closed.

Constructors

       o      OFdStream(intfd,size_tn=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.

Description

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.

Example

       See the clientsocket(3bobcat) man-page for an example showing how to use OFdStream.

Files

bobcat/ofdstream - defines the class interface

Inherits From

std::ostream

Member Functions

       All  members  of  std::ostream  are  available,  as FBB::OFdStream inherits from this class. There are no
       additional members.

Name

       FBB::Ofdstream - Output Stream initialized by a File Descriptor

Namespace

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

See Also

bobcat(7), ifdstream(3bobcat), ofdbuf(3bobcat)

Synopsis

#include<bobcat/ofdstream>

See Also