FBB::Mbuf(3bobcat)

Message handler
(libbobcat-dev_6.04.00)

2005-2023

NAME

FBB::Mbuf - std::streambuf handling messages

SYNOPSIS

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

DESCRIPTION

Objects of this class are derived from std::streambuf, and are used to handle messages in a standardized way. Messages may be prefixed with order (line) numbers and/or labels.

By default all messages are inserted into the standard output stream, but other destinations (standard error, a named file, etc.) can easily be configured.

FBB::Mbuf objects themselves are std::streambuf objects, so they can be used to construct std::ostream objects. However, they are intended to be used by mstream(3bobcat) objects, and passing Mbuf objects to other kind of ostream objects is deprecated and results in undefined behavior.

NAMESPACE

FBB
All elements mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

std::streambuf

CONSTRUCTORS

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

MEMBER FUNCTIONS

EXAMPLE

See the mstream(3bobcat) example.

FILES

bobcat/mbuf - defines the class interface

SEE ALSO

bobcat(7), exception(3bobcat), mstream(3bobcat)

BUGS

None Reported.

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