NAMEFBB::Align - Class used to align elements in Table objects
SYNOPSIS#include <bobcat/align> Linking option: -lbobcat
DESCRIPTIONThis class defines the objects used by the FBB::Table to define the alignment of its columns and/or elements.
NAMESPACEFBB All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
ADDITIONAL TYPEDEFThe type FBB::Manipulator can be used as a shorthand for std::ios_base &(*)(std::ios_base &) which is the prototype of a standard io-manipulator like std::left.
CONSTRUCTORSo Align(size_t column = 0, Manipulator manip = std::right): This constructor defines the alignment of column [column] of a Table object. When it is used, it is the responsibility of the programmer to ensure that the indicated Table column exists. This constructor can also be used as a default constructor, defining a default right-alignment. o Align(int row, size_t column, Manipulator manip): This constructor defines the alignment of element [row][column] of a Table object. When it is used, it is the responsibility of the programmer to ensure that the indicated Table element exists. o Align(Manipulator manip): This constructor is used to initialize the object with a specified alignment type. The copy constructor is available.
OVERLOADED OPERATORSo operator size_t() const: Returns the value representing a requested width of an element in a Table object.
MEMBER FUNCTIONSo size_t col() const: Returns the object's column index. o bool hasRow() const: Returns true if the object's member returns a sensible value. o size_t const: Returns the object's row index. o Manipulator manip() const: Returns the Manipulator stored in the object. o void setWidth(size_t width): Assigns a value to the field-width stored in the object. o void setManip(Manipulator manip): Changes the object's currently stored Manipulator.
MANIPULATORSThe following manipulator (which is not part of the FBB::Align, class), is defined in the FBB namespace. It can be stored in Align objects and is used by Table objects: o FBB::center:
EXAMPLESee the table(3bobcat) man-page.
FILESbobcat/align - defines the class interface
SEE ALSObobcat(7), manipulator(3bobcat), table(3bobcat)
DISTRIBUTION FILESo bobcat_2.18.00-x.dsc: detached signature; o bobcat_2.18.00-x.tar.gz: source archive; o bobcat_2.18.00-x_i386.changes: change log; o libbobcat1_2.18.00-x_*.deb: debian package holding the libraries; o libbobcat1-dev_2.18.00-x_*.deb: debian package holding the libraries, headers and manual pages; o //sourceforge.net/projects/bobcat: public archive location;
BOBCATBobcat is an acronym of 'Brokken's Own Base Classes And Templates'.
COPYRIGHTThis is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHORFrank B. Brokken (firstname.lastname@example.org). FBB::ALIGN(3)