other versions
- buster 4.08.06-1
- testing 5.07.00-1
- unstable 5.07.00-1
- experimental 5.09.01-1
other sections
FBB::Align(3bobcat) | Table Element Alignment | FBB::Align(3bobcat) |
NAME¶
FBB::Align - Class used to align elements in Table objectsSYNOPSIS¶
#include <bobcat/align>Linking option: -lbobcat
DESCRIPTION¶
This class defines objects used by the class FBB::Table to define the alignment of its columns and/or elements.NAMESPACE¶
FBBAll constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM¶
-ADDITIONAL TYPEDEF¶
The type FBB::Manipulator can be used as a shorthand forstd::ios_base &(*)(std::ios_base &)which is the prototype of standard io-manipulators like std::left.
CONSTRUCTORS¶
- o
- Align(size_t column = 0, Manipulator manip = std::right):
This constructor defines how the contents of column `column’ of a Table object are aligned. When used, it is the responsibility of the programmer to ensure that the table’s column exists. This constructor can also be used as a default constructor, by default using 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 table’s element exists. - o
- Align(Manipulator manip):
This constructor is used to initialize the object with the address of an existing io-manipulator function. The copy constructor is available.
OVERLOADED OPERATORS¶
- o
- operator size_t() const:
Returns the value representing a requested width of an element in a Table object.
MEMBER FUNCTIONS¶
- o
- 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 row() const:
Returns the object’s row index. - o
- Manipulator manip() const:
Returns the Manipulator stored in the object. - o
- void setWidth(size_t width):
Defines the field-width of element(s) of a Table object to which the Align object is applied. - o
- void setManip(Manipulator manip):
Changes the object’s currently stored Manipulator.
MANIPULATORS¶
The following manipulator (not part of the FBB::Align, class but defined in the FBB namespace) can be stored in Align objects through, e.g., setManip:- o
- FBB::center:
EXAMPLE¶
See the table(3bobcat) man-page.FILES¶
bobcat/align - defines the class interfaceSEE ALSO¶
bobcat(7), manipulator(3bobcat), table(3bobcat)BUGS¶
None Reported.DISTRIBUTION FILES¶
- o
- bobcat_4.08.06-x.dsc: detached signature;
- o
- bobcat_4.08.06-x.tar.gz: source archive;
- o
- bobcat_4.08.06-x_i386.changes: change log;
- o
- libbobcat1_4.08.06-x_*.deb: debian package holding the libraries;
- o
- libbobcat1-dev_4.08.06-x_*.deb: debian package holding the libraries, headers and manual pages;
- o
- http://sourceforge.net/projects/bobcat: public archive location;
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).2005-2018 | libbobcat-dev_4.08.06-x.tar.gz |