29 , _config(
std::move(
cfg) )
36 _out = std::make_shared<OutNormal>();
49 ZYPP_THROW(
zypp::Exception(
"No ztui::Application intance registered, its required to create one manually before using ztui.") );
53 const Config &Application::config()
const
63 Out &Application::out()
71 void Application::setOutputWriter(
Out *out)
73 if ( out == _out.get() )
78 void Application::setExitCode(
int exit) {
79 WAR <<
"setExitCode " << exit << std::endl;
Base class for producing common (for now) zypper output.
Class representing an application (appdata.xml)
~Application() override
Dtor.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
void reset()
Reset to default Ctor values.
Base class for Exception.
static constexpr int ZTUI_EXIT_OK
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.