#include <ZYppFactory.h>
Public Member Functions | |
~ZYppFactory () | |
Dtor. | |
ZYpp::Ptr | getZYpp () const |
bool | haveZYpp () const |
Whether the ZYpp instance is already created. | |
Static Public Member Functions | |
static ZYppFactory | instance () |
Singleton ctor. | |
Private Member Functions | |
ZYppFactory () | |
Default ctor. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const ZYppFactory &obj) |
Related Functions | |
(Note that these are not member functions.) | |
ZYpp::Ptr | getZYpp () |
Definition at line 45 of file ZYppFactory.h.
zypp::ZYppFactory::~ZYppFactory | ( | ) |
zypp::ZYppFactory::ZYppFactory | ( | ) | [private] |
ZYppFactory zypp::ZYppFactory::instance | ( | ) | [static] |
Singleton ctor.
Definition at line 306 of file ZYppFactory.cc.
References ZYppFactory().
Referenced by zypp::misc::defaultLoadSystem(), and getZYpp().
ZYpp::Ptr zypp::ZYppFactory::getZYpp | ( | ) | const |
EXCEPTION | In case we can't acquire a lock. |
Definition at line 331 of file ZYppFactory.cc.
References _, zypp::_haveZYpp, zypp::zypp_readonly_hack::active, zypp::str::form(), zypp::globalLock(), zypp::ZYppGlobalLock::lockerPid(), MIL, zypp::str::numstring(), ZYPP_THROW, zypp::ZYppGlobalLock::zyppLocked(), and zypp::ZYppGlobalLock::zyppLockFilePath().
Referenced by getZYpp().
bool zypp::ZYppFactory::haveZYpp | ( | ) | const |
Whether the ZYpp instance is already created.
Definition at line 398 of file ZYppFactory.cc.
References zypp::_haveZYpp.
Referenced by zypp::misc::defaultLoadSystem().
std::ostream & operator<< | ( | std::ostream & | str, | |
const ZYppFactory & | obj | |||
) | [friend] |
Stream output
Definition at line 406 of file ZYppFactory.cc.
ZYpp::Ptr getZYpp | ( | ) | [related] |
Convenience to get the Pointer to the ZYpp instance.
Definition at line 77 of file ZYppFactory.h.
References getZYpp(), and instance().