FBB::TableSupport(3bobcat)

Table Support Base class
(libbobcat-dev_6.02.02)

2005-2022

NAME

FBB::TableSupport - Defines protocols for Table-support classes

SYNOPSIS

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

DESCRIPTION

FBB::TableSupport is used by FBB::Table and FBB::TableBuf objects, handling some of their functionality. Users may derive classes from TableSupport, overriding its virtual members to determine the actual layout of tables. By default the virtual members of TableSupport do not separate the columns of the table from each other.

The Bobcat library offers the specialized class TableLines extending the basic facilities of TableSupport, offering facilities to separate rows by (partial) horizontal lines (cf. tablelines(3bobcat) for details).

More specialized handling can be realized by deriving new classes from FBB::TableSupport, overriding members so that they implement the programmer's intentions. An object of this derived class may be presented to a FBB::Table or FBB::TableBuf constructor, to activate the special handling.

NAMESPACE

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

INHERITS FROM

-

ENUMERATION

The enum ColumnType defines the following values (see also the description of the struct HLine, below):

The value SKIP should always be used by itself; remaining values of the enum may be combined using the binary or (|) operator.

PUBLIC TYPE `HLine'

PROTECTED TYPES

CONSTRUCTORS

The default, copy and move constructors as well as the copy and move assignment operators are available.

OVERLOADED OPERATORS

The following overloaded operators define separators between columns. The first value inserted into a TableSupport object defines the separator before column 0, the next one defines the separator before column 1, etc, until inserting separator nColumns + 1, defining the separator to the right of the table's last column. Inserting additional separators are ignored.

PUBLIC MEMBER FUNCTIONS

PROTECTED MEMBER FUNCTIONS

The following members are available to classes derived from TableSupport. Except for sep and sepWidth their values are only defined after calling setParam which is called from the def member or manipulator of Table or TableBuf objects.

VIRTUAL MEMBER FUNCTIONS

The following member functions can be overridden by derived classes to redefine the way horizontal and vertical separators are displayed.

EXAMPLE

See the example in the table(3bobcat) man-page.

FILES

bobcat/tableSupport - defines the class interface

SEE ALSO

bobcat(7), align(3bobcat), csvtable(3bobcat), table(3bobcat), tablebuf(3bobcat), tablelines(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).