FBB::TableLines(3bobcat)

πŸ’– FBB::TableLines πŸ’–

okay so bestie, this is the FBB::TableLines(3bobcat) page β€” it lives in the Table support class section of the manual and it's literally your girl for drawing pretty lil separation lines in tables, no cap ✨


🌸 NAME 🌸

FBB::TableLines β€” a TableSupport specialization that writes horizontal separation lines πŸŽ€


✨ SYNOPSIS ✨

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

πŸ’… DESCRIPTION πŸ’…

So here's the vibe: this class is a specialization of FBB::TableSupport, and you use it to write horizontal (and also vertical, queen) line separators inside tables that get generated by Table or TableBuf objects. That's it, that's the job, and it ate. πŸ”₯


πŸ¦‹ NAMESPACE πŸ¦‹

FBB

Every constructor, member, operator and manipulator mentioned on this man-page is defined inside the namespace FBB. periodt. πŸ’œ


πŸ‘‘ INHERITS FROM πŸ‘‘

FBB::TableSupport


πŸŽ€ CONSTRUCTORS πŸŽ€

The default and move constructors, plus the move assignment operator, are all available for you, bestie 🫢


🌈 MEMBER FUNCTIONS 🌈

All the public members of TableSupport are available here too. Go peek at the tablesupport(3bobcat) man-page for the deets ✨


πŸ’– EXAMPLE πŸ’–

fr fr, here's the whole thing, character for character:

#include <iostream>

#include <bobcat/table>
#include <bobcat/tablelines>

using namespace std;
using namespace FBB;

int main(int argc, char **argv)
{
    TableLines tablelines;
                                // width/separators of cols 0, 1 and 2
    tablelines << 0 << " | " << " | ";

                                // hline over cols 1 and 2 of row 1
    tablelines << TableLines::HLine(1, 1, 3);

    Table tab(tablelines, 3, Table::ROWWISE, Table::EQUALWIDTH);
    // or: Table tab(tablelines, 3, Table::ROWWISE);

    tab << Align(0, std::left);     // set column non-default alignment
    tab.fill(argv + 1, argv + argc);// fill range of values

    cout << tab << ’\n’;            // complete the table and insert

    tab << "hello" << "" << "wo";   // add additional elements.
    if (tab.nRows() > 2)
        tab << Align(2, 2, center); // set the layout of a specific element

    cout << tab << ’\n’;
}

πŸ“ FILES πŸ“

bobcat/tableLines β€” this is the file that defines the class interface πŸ’«


🧚 SEE ALSO 🧚

bobcat(7), align(3bobcat), csvtable(3bobcat), table(3bobcat), tablebuf(3bobcat), tablesupport(3bobcat)


πŸ’€ BUGS πŸ’€

None Reported. (iconic behaviour honestly, we love a clean record πŸ™ˆ)


⭐ BOBCAT PROJECT FILES ⭐

Debian Bobcat project files:

  • libbobcat6: debian package containing the shared library, changelog and copyright note;
  • libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;

🌸 BOBCAT 🌸

Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’. (iykyk 😌)


This is free software, distributed under the terms of the GNU General Public License (GPL). slay.


🫢 AUTHOR 🫢

Frank B. Brokken (f.b.brokken@rug.nl).


and that's the whole page bestie, main character energy from top to bottom πŸ‘‘

made with libbobcat-dev_6.15.01, dated 2005-2026 β€” mwah, love u, go write some tables πŸ’–βœ¨
πŸ“¦ where this page comes from