libzypp
17.36.1
|
#include <string>
#include <sstream>
#include <optional>
#include <zypp-core/base/Xml.h>
#include <zypp-core/base/NonCopyable.h>
#include <zypp-core/base/Exception.h>
#include <zypp-core/base/String.h>
#include <zypp-core/base/Flags.h>
#include <utility>
#include <zypp-core/base/DefaultIntegral>
#include <zypp-core/base/DtorReset>
#include <zypp-core/Url.h>
#include <zypp-core/TriBool.h>
#include <zypp-core/ui/ProgressData>
#include <zypp-core/base/LogTools.h>
#include <zypp-tui/utils/text.h>
#include <zypp-tui/utils/colors.h>
#include <zypp-tui/utils/richtext.h>
#include <zypp-tui/Table.h>
#include <zypp-tui/output/PromptOptions>
Go to the source code of this file.
Classes | |
class | ztui::out::ListLayout |
Basic list layout. More... | |
class | ztui::out::ListLayout::Writer< TFormater > |
Write out a List according to the layout. More... | |
struct | ztui::out::detail::ListLayoutInit< singleline_, wrapline_, gaped_, indent_ > |
class | ztui::out::TableLayout |
Basic table layout. More... | |
class | ztui::out::TableLayout::Writer< TFormater > |
Write out a Table according to the layout. More... | |
class | ztui::out::XmlFormater |
XML representation of types in container [asXmlListElement]. More... | |
class | ztui::out::ListFormater |
Default representation of types in Lists [asListElement]. More... | |
class | ztui::out::TableFormater |
Special list formater writing a Table [asTableHeader|asTableRow]. More... | |
class | ztui::out::XmlFormaterAdaptor< TFormater > |
Adaptor. More... | |
class | ztui::out::ListLayout::Writer< TFormater > |
Write out a List according to the layout. More... | |
class | ztui::out::TableLayout::Writer< TFormater > |
Write out a Table according to the layout. More... | |
struct | ztui::TermLine |
class | ztui::Out |
Base class for producing common (for now) zypper output. More... | |
class | ztui::Out::ParentOut |
Convenience base class storing the back reference to Out. More... | |
class | ztui::Out::XmlNode |
XML only: RAII writing a XML nodes start/end tag. More... | |
class | ztui::Out::TitleNode |
XmlNode with optional normal text headline (NL appended) More... | |
struct | ztui::Out::ParFormat |
Less common Paragraph formats. More... | |
struct | ztui::Out::Info |
class | ztui::Out::ProgressBar |
Convenience class for progress output. More... | |
struct | ztui::Out::ProgressBar::NoStartBar |
Indicator type for ctor not drawing an initial start bar. More... | |
struct | ztui::Out::ProgressBar::Print |
ProgressData::ReceiverFnc printing to a ProgressBar. More... | |
class | ztui::Out::Error |
Convenience class Error reporting. More... | |
Namespaces | |
ztui | |
ztui::text | |
ztui::out | |
ztui::out::detail | |
Macros | |
#define | SCOPED_VERBOSITY(OUT, LEVEL) const auto & raii __attribute__ ((__unused__))( (OUT).scopedVerbosity( LEVEL )) |
Convenience macro for exception safe scoped verbosity change. More... | |
Typedefs | |
using | ztui::out::XmlListLayout = detail::ListLayoutInit< true, false, false, 0U > |
using | ztui::out::DefaultListLayout = detail::ListLayoutInit< true, true, false, 0U > |
one element per line, no indent More... | |
using | ztui::out::DefaultGapedListLayout = detail::ListLayoutInit< true, true, true, 0U > |
one element per line, no indent, gaped More... | |
using | ztui::out::IndentedListLayout = detail::ListLayoutInit< true, true, false, 2U > |
one element per line, indented More... | |
using | ztui::out::IndentedGapedListLayout = detail::ListLayoutInit< true, true, true, 2U > |
one element per line, indented, gaped More... | |
using | ztui::out::CompressedListLayout = detail::ListLayoutInit< false, true, false, 2U > |
multiple elements per line, indented More... | |
using | ztui::out::DefaultTableLayout = TableLayout |
Simple Table. More... | |
Enumerations | |
enum | ztui::ProgressEnd { ztui::ProgressEnd::done, ztui::ProgressEnd::attention, ztui::ProgressEnd::error } |
ProgressBars default end tags. More... | |
Functions | |
ColorString | ztui::text::tagNote () |
translated "Note:" highlighted More... | |
ColorString | ztui::text::tagWarning () |
translated "Warning:" warning color More... | |
ColorString | ztui::text::tagError () |
translated "Error:" error color More... | |
const char * | ztui::text::qContinue () |
translated "Continue?" More... | |
template<class Tltext , class Trtext > | |
std::string | ztui::text::join (const Tltext <ext, const Trtext &rtext, const char *sep=" ") |
Simple join of two string types. More... | |
bool | ztui::text::endsOnWS (const std::string &str_r) |
Whether the str_r ends with a WS. More... | |
const char * | ztui::text::optBlankAfter (const std::string &str_r) |
unsigned | ztui::out::defaultTermwidth () |
std::string | ztui::out::asXmlListElement (const std::string &val_r) |
std::string | ztui::out::asXmlListElement (const char *val_r) |
std::string | ztui::out::asListElement (const std::string &val_r) |
std::string | ztui::out::asListElement (const char *val_r) |
template<> | |
TableHeader | ztui::out::asTableHeader< void > () |
template<class TContainer , class TFormater , class TLayout = typename TFormater::NormalLayout> | |
void | ztui::out::writeContainer (std::ostream &str_r, const TContainer &container_r, const TFormater &formater_r, const TLayout &layout_r=TLayout()) |
Write formatted container to stream. More... | |
template<class TContainer , class TFormater > | |
void | ztui::out::xmlWriteContainer (std::ostream &str_r, const TContainer &container_r, const TFormater &formater_r) |
Write XML formatted container to stream. More... | |
ztui::ZYPP_DECLARE_OPERATORS_FOR_FLAGS (TermLine::SplitFlags) | |
ztui::ZYPP_DECLARE_OPERATORS_FOR_FLAGS (Out::Type) | |
Variables | |
static constexpr unsigned | ztui::out::termwidthUnlimited = 0u |
#define SCOPED_VERBOSITY | ( | OUT, | |
LEVEL | |||
) | const auto & raii __attribute__ ((__unused__))( (OUT).scopedVerbosity( LEVEL )) |
Convenience macro for exception safe scoped verbosity change.