FBB::SharedBuf(3bobcat)

Shared memory streambuf
(libbobcat-dev_6.04.00)

2005-2023

NAME

FBB::SharedBuf - streambuf interfacing to shared memory

SYNOPSIS

#include <bobcat/sharedbuf>
Linking option: -lpthread -lbobcat

DESCRIPTION

This class implements a specialization of the std::streambuf class, allowing stream classes (std::istream, std::ostream, FBB::ISharedStream, FBB::OSharedStream and FBB::SharedStream) to perform I/O operations on shared memory. FBB::SharedBuf objects interface to a FBB::SharedMemory objects.

NAMESPACE

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

INHERITS FROM

std::streambuf, FBB::SharedEnum__ (cf. sharedmemory(3bobcat) for a description of the latter class).

SIZEUNIT ENUMERATION

The enum SizeUnit defines the following symbolic constants:

CONSTRUCTORS

Copy and move constructors (and assignment operators) are not available.

MEMBER FUNCTIONS

All members of std::streambuf and the enum values kB, MB, and GB, defined by FBB::SharedEnum__ are available.

PROTECTED MEMBER FUNCTIONS

EXAMPLE

See the sharedstream(3bobcat) man page.

FILES

bobcat/sharedbuf - defines the class interface

SEE ALSO

bobcat(7), chmod(1), isharedstream(3bobcat), osharedstream(3bobcat), sharedblock(3bobcat), sharedcondition(3bobcat), sharedmemory(3bobcat) sharedmutex(3bobcat), sharedpos(3bobcat), sharedreadme(7bobcat), sharedsegment(3bobcat), sharedstream(3bobcat)

BUGS

Note that by default exceptions thrown from within a std::stream object are caught by the stream object, setting its ios::failbit flag. To allow exceptions to leave a stream object, its exceptions member can be called, e.g., using:

    myStream.exceptions(ios::failbit | ios::badbit | ios::eofbit);
        

BOBCAT PROJECT 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).