.TH "FBB::Align" "3bobcat" "2005\-2023" "libbobcat\-dev_6\&.04\&.00" "Table Element Alignment" .PP .SH "NAME" FBB::Align \- Class to align elements in Table objects .PP .SH "SYNOPSIS" \fB#include \fP .br .PP Linking option: \fI\-lbobcat\fP .PP .SH "DESCRIPTION" This class defines objects used by the class \fBFBB::Table\fP to define the alignment of its columns and/or elements\&. .PP .SH "NAMESPACE" \fBFBB\fP .br All constructors, members, operators and manipulators, mentioned in this man\-page, are defined in the namespace \fBFBB\fP\&. .PP .SH "INHERITS FROM" \- .PP .SH "ADDITIONAL TYPEDEF" .PP The type \fBFBB::Manipulator\fP can be used as a shorthand for .nf std::ios_base &(*)(std::ios_base &) .fi which is the prototype of standard io\-manipulators like \fIstd::left\fP\&. .PP .SH "MANIPULATOR" The following manipulator (not part of the \fBFBB::Align\fP, class but defined in the \fIFBB\fP namespace) can be specified as \fIAlign\fP\-object constructor arguments and can be stored in \fIAlign\fP objects through, e\&.g\&., \fIsetManip\fP: .IP o \fBFBB::center\fP: .br .PP .SH "CONSTRUCTORS" .IP o \fBAlign(Manipulator manip)\fP: .br This constructor is used to specify an alignment which, when inserted into a \fITable\fP, is used for all the table\(cq\&s elements\&. This general alignment type may be modified of specific columns and/or elements using the following constructors; .IP .IP o \fBAlign(size_t column = 0, Manipulator manip = std::right)\fP: .br This constructor defines how the content of column `\fIcolumn\fP\(cq\& of a \fITable\fP object are aligned\&. When used, it is the responsibility of the programmer to ensure that the table\(cq\&s column exists (i\&.e\&., the \fITable\fP must have a column index \fIcolumn\fP); .IP .IP o \fBAlign(int row, size_t column, Manipulator manip)\fP: .br This constructor defines the alignment of element \fI[row][column]\fP of a \fITable\fP object\&. Before using this constructor table element \fI[row][column]\fP must have been defined\&. E\&.g\&., .nf Table tab{ 3, Table::ROWWISE }; tab << \(dq\&xx00x \(dq\& << \(dq\& x01x \(dq\& << \(dq\& x02xx\(dq\& << 10 << 11 << 12; tab << Align(1, 1, FBB::center); .fi .PP Copy and move constructors (and assignment operators) are available\&. .PP .SH "OVERLOADED OPERATORS" .PP .IP o \fBoperator size_t() const\fP: .br Returns the value representing a requested width of an element in a \fITable\fP object\&. .PP .SH "MEMBER FUNCTIONS" .IP o \fBsize_t col() const\fP: .br Returns the object\(cq\&s column index; .IP o \fBbool hasRow() const\fP: .br Returns \fItrue\fP if the object\(cq\&s \fI\fP member returns a sensible value; .IP o \fBsize_t row() const\fP: .br Returns the object\(cq\&s row index; .IP o \fBManipulator manip() const\fP: .br Returns the \fIManipulator\fP stored in the object; .IP o \fBvoid setWidth(size_t width)\fP: .br Defines the field\-width of element(s) of a \fITable\fP object to which the \fIAlign\fP object refers; .IP o \fBvoid setManip(Manipulator manip)\fP: .br Changes the object\(cq\&s currently stored \fIManipulator\fP\&. .PP .SH "EXAMPLE" See the \fBtable\fP(3bobcat) man\-page\&. .PP .SH "FILES" \fIbobcat/align\fP \- defines the class interface .PP .SH "SEE ALSO" \fBbobcat\fP(7), \fBcsvtable\fP(3bobcat), \fBmanipulator\fP(3bobcat), \fBtable\fP(3bobcat) .PP .SH "BUGS" None Reported\&. .PP .SH "BOBCAT PROJECT FILES" .PP .IP o \fIhttps://fbb\-git\&.gitlab\&.io/bobcat/\fP: gitlab project page; .IP o \fIbobcat_6\&.04\&.00\-x\&.dsc\fP: detached signature; .IP o \fIbobcat_6\&.04\&.00\-x\&.tar\&.gz\fP: source archive; .IP o \fIbobcat_6\&.04\&.00\-x_i386\&.changes\fP: change log; .IP o \fIlibbobcat1_6\&.04\&.00\-x_*\&.deb\fP: debian package containing the libraries; .IP o \fIlibbobcat1\-dev_6\&.04\&.00\-x_*\&.deb\fP: debian package containing the libraries, headers and manual pages; .PP .SH "BOBCAT" Bobcat is an acronym of `Brokken\(cq\&s Own Base Classes And Templates\(cq\&\&. .PP .SH "COPYRIGHT" This is free software, distributed under the terms of the GNU General Public License (GPL)\&. .PP .SH "AUTHOR" Frank B\&. Brokken (\fBf\&.b\&.brokken@rug\&.nl\fP)\&. .PP