libzypp 17.34.0
ztui::PropertyTable Class Reference

Aligned key/value with multiline support Key : value 1 LongKey : value 2 Multiline : line 1 line 2 Next Key : value 3. More...

#include <zypp-tui/Table.h>

Public Member Functions

 PropertyTable ()
 
template<class KeyType >
PropertyTableadd (const KeyType &key_r)
 
template<class KeyType , class ValueType >
PropertyTableadd (const KeyType &key_r, const ValueType &val_r)
 
template<class KeyType >
PropertyTableadd (const KeyType &key_r, bool val_r)
 
template<class ValueType >
PropertyTableaddDetail (const ValueType &val_r)
 
template<class KeyType , class ValueType >
PropertyTableaddDetail (const KeyType &key_r, const ValueType &val_r)
 
template<class KeyType , class Iterator_ >
PropertyTableadd (const KeyType &key_r, Iterator_ begin_r, Iterator_ end_r, bool forceDetails_r=false)
 
template<class KeyType , class ContainerType >
PropertyTablelst (const KeyType &key_r, const ContainerType &lst_r, bool forceDetails_r=false)
 
template<class KeyType , class ValueType >
PropertyTableadd (const KeyType &key_r, const std::set< ValueType > &lst_r, bool forceDetails_r=false)
 
template<class KeyType , class ValueType >
PropertyTableadd (const KeyType &key_r, const std::list< ValueType > &lst_r, bool forceDetails_r=false)
 
template<class KeyType , class ValueType >
PropertyTableadd (const KeyType &key_r, const std::vector< ValueType > &lst_r, bool forceDetails_r=false)
 
PropertyTablepaint (ansi::Color color_r, bool cond_r=true)
 
TableRowlast ()
 
std::string & lastKey ()
 
std::string & lastValue ()
 

Static Public Member Functions

static const char * emptyListTag ()
 

Private Attributes

Table _table
 

Friends

std::ostream & operator<< (std::ostream &str, const PropertyTable &obj)
 

Detailed Description

Aligned key/value with multiline support Key : value 1 LongKey : value 2 Multiline : line 1 line 2 Next Key : value 3.

Definition at line 534 of file Table.h.

Constructor & Destructor Documentation

◆ PropertyTable()

ztui::PropertyTable::PropertyTable ( )
inline

Definition at line 537 of file Table.h.

Member Function Documentation

◆ emptyListTag()

static const char * ztui::PropertyTable::emptyListTag ( )
inlinestatic

Definition at line 540 of file Table.h.

◆ add() [1/7]

template<class KeyType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r)
inline

Definition at line 546 of file Table.h.

◆ add() [2/7]

template<class KeyType , class ValueType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
const ValueType & val_r )
inline

Definition at line 550 of file Table.h.

◆ add() [3/7]

template<class KeyType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
bool val_r )
inline

Definition at line 554 of file Table.h.

◆ addDetail() [1/2]

template<class ValueType >
PropertyTable & ztui::PropertyTable::addDetail ( const ValueType & val_r)
inline

Definition at line 560 of file Table.h.

◆ addDetail() [2/2]

template<class KeyType , class ValueType >
PropertyTable & ztui::PropertyTable::addDetail ( const KeyType & key_r,
const ValueType & val_r )
inline

Definition at line 564 of file Table.h.

◆ add() [4/7]

template<class KeyType , class Iterator_ >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
Iterator_ begin_r,
Iterator_ end_r,
bool forceDetails_r = false )
inline

Definition at line 570 of file Table.h.

◆ lst()

template<class KeyType , class ContainerType >
PropertyTable & ztui::PropertyTable::lst ( const KeyType & key_r,
const ContainerType & lst_r,
bool forceDetails_r = false )
inline

Definition at line 598 of file Table.h.

◆ add() [5/7]

template<class KeyType , class ValueType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
const std::set< ValueType > & lst_r,
bool forceDetails_r = false )
inline

Definition at line 602 of file Table.h.

◆ add() [6/7]

template<class KeyType , class ValueType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
const std::list< ValueType > & lst_r,
bool forceDetails_r = false )
inline

Definition at line 605 of file Table.h.

◆ add() [7/7]

template<class KeyType , class ValueType >
PropertyTable & ztui::PropertyTable::add ( const KeyType & key_r,
const std::vector< ValueType > & lst_r,
bool forceDetails_r = false )
inline

Definition at line 608 of file Table.h.

◆ paint()

PropertyTable & ztui::PropertyTable::paint ( ansi::Color color_r,
bool cond_r = true )
inline

Definition at line 613 of file Table.h.

◆ last()

TableRow & ztui::PropertyTable::last ( )
inline

Definition at line 624 of file Table.h.

◆ lastKey()

std::string & ztui::PropertyTable::lastKey ( )
inline

Definition at line 627 of file Table.h.

◆ lastValue()

std::string & ztui::PropertyTable::lastValue ( )
inline

Definition at line 630 of file Table.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & str,
const PropertyTable & obj )
friend

Definition at line 634 of file Table.h.

Member Data Documentation

◆ _table

Table ztui::PropertyTable::_table
private

Definition at line 638 of file Table.h.


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