#include <CacheInitializer.h>
Public Member Functions | |
| CacheInitializer (const Pathname &root_r, const Pathname &db_file) | |
| Tries to initialize the source cache if it was not. | |
| virtual | ~CacheInitializer () |
| bool | justInitialized () const |
| bool | justReinitialized () const |
Protected Member Functions | |
| bool | tablesCreated () const |
| void | createTables () |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize stream output. | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const CacheInitializer &obj) |
| Stream output. | |
Classes | |
| struct | Impl |
Definition at line 35 of file CacheInitializer.h.
| zypp::cache::CacheInitializer::CacheInitializer | ( | const Pathname & | root_r, | |
| const Pathname & | db_file | |||
| ) |
Tries to initialize the source cache if it was not.
| Exception | When cant initialize |
Definition at line 48 of file CacheInitializer.cc.
References _pimpl, zypp::filesystem::assert_dir(), sqlite3x::sqlite3_reader::close(), createTables(), sqlite3x::sqlite3_command::executereader(), sqlite3x::sqlite3_reader::getstring(), MIL, sqlite3x::sqlite3_reader::read(), tablesCreated(), WAR, ZYPP_CACHE_SCHEMA_VERSION, and ZYPP_RETHROW.
| zypp::cache::CacheInitializer::~CacheInitializer | ( | ) | [virtual] |
Definition at line 119 of file CacheInitializer.cc.
| bool zypp::cache::CacheInitializer::justInitialized | ( | ) | const |
Has the cache been reinitialized? only true when cache was not initialized before and was just initialized with success
Definition at line 109 of file CacheInitializer.cc.
References _pimpl.
Referenced by zypp::cache::CacheStore::Impl::Impl().
| bool zypp::cache::CacheInitializer::justReinitialized | ( | ) | const |
| bool zypp::cache::CacheInitializer::tablesCreated | ( | ) | const [protected] |
Definition at line 124 of file CacheInitializer.cc.
References _pimpl, and zypp::debug::Measure::elapsed().
Referenced by CacheInitializer().
| void zypp::cache::CacheInitializer::createTables | ( | ) | [protected] |
Definition at line 132 of file CacheInitializer.cc.
References _pimpl, sqlite3x::sqlite3_command::bind(), sqlite3x::sqlite3_command::executenonquery(), MIL, and ZYPP_CACHE_SCHEMA_VERSION.
Referenced by CacheInitializer().
| std::ostream & zypp::cache::CacheInitializer::dumpOn | ( | std::ostream & | str | ) | const [protected, virtual] |
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const CacheInitializer & | obj | |||
| ) | [friend] |
RW_pointer<Impl> zypp::cache::CacheInitializer::_pimpl [private] |
Pointer to implementation.
Definition at line 71 of file CacheInitializer.h.
Referenced by CacheInitializer(), createTables(), justInitialized(), justReinitialized(), and tablesCreated().
1.5.3