libzypp  17.32.4
ztui::TableHeader Class Reference

#include <zypp-tui/Table.h>

Inheritance diagram for ztui::TableHeader:

Public Types

using CStyle = table::CStyle
 
- Public Types inherited from ztui::TableRow
using container = std::vector< std::string >
 

Public Member Functions

 TableHeader (unsigned c=0)
 Constructor. Reserve place for c columns. More...
 
bool hasStyle (unsigned c, CStyle s) const
 
CStyle style (unsigned c) const
 
void style (unsigned c, CStyle s)
 
std::set< unsigned > editionColumns () const
 
- Public Member Functions inherited from ztui::TableRow
 TableRow ()
 Binary predicate for sorting. More...
 
 TableRow (unsigned c)
 
 TableRow (ColorContext ctxt_r)
 
 TableRow (unsigned c, ColorContext ctxt_r)
 
TableRowadd (std::string s)
 
template<class Tp_ >
TableRowadd (const Tp_ &val_r)
 
TableRowaddDetail (std::string s)
 
template<class Tp_ >
TableRowaddDetail (const Tp_ &val_r)
 
bool empty () const
 
unsigned size () const
 
unsigned cols () const
 
std::ostream & dumbDumpTo (std::ostream &stream) const
 tab separated output More...
 
std::ostream & dumpTo (std::ostream &stream, const Table &parent) const
 output with parent table attributes More...
 
const boost::any & userData () const
 
void userData (const boost::any &n_r)
 
const containercolumns () const
 
containercolumns ()
 
const containercolumnsNoTr () const
 
containercolumnsNoTr ()
 

Private Attributes

std::map< unsigned, CStyle_cstyle
 Column style and sort hints are remembered here. More...
 

Related Functions

(Note that these are not member functions.)

template<class Tp_ >
TableHeaderoperator<< (TableHeader &th, Tp_ &&val)
 

Additional Inherited Members

- Protected Attributes inherited from ztui::TableRow
bool _translateColumns = false
 

Detailed Description

Definition at line 282 of file Table.h.

Member Typedef Documentation

◆ CStyle

Definition at line 285 of file Table.h.

Constructor & Destructor Documentation

◆ TableHeader()

ztui::TableHeader::TableHeader ( unsigned  c = 0)
inline

Constructor. Reserve place for c columns.

Definition at line 287 of file Table.h.

Member Function Documentation

◆ hasStyle()

bool ztui::TableHeader::hasStyle ( unsigned  c,
CStyle  s 
) const
inline

Definition at line 289 of file Table.h.

◆ style() [1/2]

CStyle ztui::TableHeader::style ( unsigned  c) const
inline

Definition at line 292 of file Table.h.

◆ style() [2/2]

void ztui::TableHeader::style ( unsigned  c,
CStyle  s 
)
inline

Definition at line 295 of file Table.h.

◆ editionColumns()

std::set<unsigned> ztui::TableHeader::editionColumns ( ) const
inline

Definition at line 299 of file Table.h.

Friends And Related Function Documentation

◆ operator<<()

template<class Tp_ >
TableHeader & operator<< ( TableHeader th,
Tp_ &&  val 
)
related

Add column.

Definition at line 315 of file Table.h.

Member Data Documentation

◆ _cstyle

std::map<unsigned,CStyle> ztui::TableHeader::_cstyle
private

Column style and sort hints are remembered here.

Definition at line 310 of file Table.h.


The documentation for this class was generated from the following file: