libzypp 8.13.6
Public Member Functions | Static Public Member Functions | Private Member Functions | Friends | Related Functions

zypp::ZYppFactory Class Reference

ZYpp factory class (Singleton) More...

#include <ZYppFactory.h>

List of all members.

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 ()

Detailed Description

ZYpp factory class (Singleton)

Definition at line 45 of file ZYppFactory.h.


Constructor & Destructor Documentation

zypp::ZYppFactory::~ZYppFactory ( )

Dtor.

Definition at line 355 of file ZYppFactory.cc.

zypp::ZYppFactory::ZYppFactory ( ) [private]

Default ctor.

Definition at line 345 of file ZYppFactory.cc.

Referenced by instance().


Member Function Documentation

ZYppFactory zypp::ZYppFactory::instance ( ) [static]

Singleton ctor.

Definition at line 335 of file ZYppFactory.cc.

References ZYppFactory().

Referenced by zypp::misc::defaultLoadSystem(), and getZYpp().

ZYpp::Ptr zypp::ZYppFactory::getZYpp ( ) const
Returns:
Pointer to the ZYpp instance.
Exceptions:
EXCEPTIONIn case we can't acquire a lock.

Definition at line 360 of file ZYppFactory.cc.

References _, zypp::zypp_readonly_hack::active, zypp::str::form(), MIL, and ZYPP_THROW.

Referenced by getZYpp().

bool zypp::ZYppFactory::haveZYpp ( ) const

Whether the ZYpp instance is already created.

Definition at line 397 of file ZYppFactory.cc.

Referenced by zypp::misc::defaultLoadSystem().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const ZYppFactory obj 
) [friend]

Stream output

Definition at line 405 of file ZYppFactory.cc.

ZYpp::Ptr getZYpp ( ) [related]

Convenience to get the Pointer to the ZYpp instance.

See also:
ZYppFactory::getZYpp

Definition at line 77 of file ZYppFactory.h.

References getZYpp(), and instance().


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