zypp::target::rpm::RpmDb::Logfile Class Reference
Simple wrapper for progress log.
More...
List of all members.
Detailed Description
Simple wrapper for progress log.
Refcnt, filename and corresponding ofstream are static members. Logfile constructor raises, destructor lowers refcounter. On refcounter changing from 0->1, file is opened. Changing from 1->0 the file is closed. Thus Logfile objects should be local to those functions, writing the log, and must not be stored permanently;
Usage: some methothd () { Logfile progresslog; ... progresslog() << "some message" << endl; ... }
Definition at line 180 of file RpmDb.cc.
Constructor & Destructor Documentation
zypp::target::rpm::RpmDb::Logfile::Logfile |
( |
const Logfile & |
|
) |
[private] |
|
zypp::target::rpm::RpmDb::Logfile::Logfile |
( |
|
) |
[inline] |
|
zypp::target::rpm::RpmDb::Logfile::~Logfile |
( |
|
) |
[inline] |
|
Member Function Documentation
Logfile& zypp::target::rpm::RpmDb::Logfile::operator= |
( |
const Logfile & |
|
) |
[private] |
|
static void zypp::target::rpm::RpmDb::Logfile::openLog |
( |
|
) |
[inline, static, private] |
|
static void zypp::target::rpm::RpmDb::Logfile::closeLog |
( |
|
) |
[inline, static, private] |
|
static void zypp::target::rpm::RpmDb::Logfile::refUp |
( |
|
) |
[inline, static, private] |
|
static void zypp::target::rpm::RpmDb::Logfile::refDown |
( |
|
) |
[inline, static, private] |
|
ostream& zypp::target::rpm::RpmDb::Logfile::operator() |
( |
bool |
timestamp = false |
) |
[inline] |
|
static void zypp::target::rpm::RpmDb::Logfile::setFname |
( |
const Pathname & |
fname_r |
) |
[inline, static] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Jul 6 00:07:35 2006 for zypp by
1.4.6