#include <PersistentStorage.h>
Inheritance diagram for zypp::storage::PersistentStorage:

Public Member Functions | |
| PersistentStorage () | |
| Default ctor. | |
| ~PersistentStorage () | |
| Dtor. | |
| void | doTest () |
| void | init (const Pathname &root) |
| Initializes the Storage when the system is located in some root path. | |
| bool | isInitialized () const |
| true is backend was already initialized | |
| void | storeObject (ResObject::constPtr resolvable) |
| Stores a Resolvable in the active backend. | |
| void | deleteObject (ResObject::constPtr resolvable) |
| Deletes a Resolvable from the active backend. | |
| std::list< ResObject::Ptr > | storedObjects () const |
| Query for installed Resolvables. | |
| std::list< ResObject::Ptr > | storedObjects (const Resolvable::Kind kind) const |
| Query for installed Resolvables of a certain kind. | |
| std::list< ResObject::Ptr > | storedObjects (const Resolvable::Kind kind, const std::string &name, bool partial_match=false) const |
| Query for installed Resolvables of a certain kind by name partial_match allows for text search. | |
| void | setObjectFlag (ResObject::constPtr resolvable, const std::string &flag) |
| Set a flag for a resolvable. | |
| void | removeObjectFlag (ResObject::constPtr resolvable, const std::string &flag) |
| Removes a flag for a resolvable. | |
| std::set< std::string > | objectFlags (ResObject::constPtr resolvable) const |
| Returns a set of flags a resolvable has stored. | |
| bool | doesObjectHasFlag (ResObject::constPtr resolvable, const std::string &flag) const |
| True if the resolvable has that flag. | |
| void | setFlag (const std::string &key, const std::string &flag) |
| void | removeFlag (const std::string &key, const std::string &flag) |
| std::set< std::string > | flags (const std::string &key) const |
| bool | hasFlag (const std::string &key, const std::string &flag) const |
| std::list< SourceData > | storedSources () const |
| Query for installed Sources. | |
| void | storeSource (const SourceData &data) |
| Add a new installed source. | |
| void | deleteSource (const std::string &alias) |
| Delete an installed source. | |
Private Types | |
| typedef intrusive_ptr< PersistentStorage > | Ptr |
| typedef intrusive_ptr< const PersistentStorage > | constPtr |
Private Attributes | |
| Private * | d |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const PersistentStorage &obj) |
Classes | |
| class | Private |
| struct | SourceData |
Definition at line 35 of file PersistentStorage.h.
|
|
Definition at line 38 of file PersistentStorage.h. |
|
|
Definition at line 39 of file PersistentStorage.h. |
|
|
Default ctor.
Definition at line 49 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and DBG. |
|
|
Dtor.
Definition at line 71 of file PersistentStorage.cc. |
|
|
Definition at line 79 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::doTest(). |
|
|
Initializes the Storage when the system is located in some root path. THIS MUST BE CALLED BEFORE DOING ANY OPERATION Definition at line 56 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, and d. Referenced by zypp::target::TargetImpl::enableStorage(). |
|
|
true is backend was already initialized
Definition at line 61 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, and d. |
|
|
Stores a Resolvable in the active backend.
Definition at line 85 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storeObject(). |
|
|
Deletes a Resolvable from the active backend.
Definition at line 91 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::deleteObject(). |
|
|
Query for installed Resolvables.
Definition at line 97 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storedObjects(). |
|
|
Query for installed Resolvables of a certain kind.
Definition at line 103 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storedObjects(). |
|
||||||||||||||||
|
Query for installed Resolvables of a certain kind by name partial_match allows for text search.
Definition at line 111 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storedObjects(). |
|
||||||||||||
|
Set a flag for a resolvable.
Definition at line 121 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::setObjectFlag(). |
|
||||||||||||
|
Removes a flag for a resolvable.
Definition at line 125 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::removeObjectFlag(). |
|
|
Returns a set of flags a resolvable has stored.
Definition at line 129 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::objectFlags(). |
|
||||||||||||
|
True if the resolvable has that flag.
Definition at line 133 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::doesObjectHasFlag(). |
|
||||||||||||
|
Definition at line 141 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::setFlag(). |
|
||||||||||||
|
Definition at line 147 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::removeFlag(). |
|
|
Definition at line 153 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::flags(). |
|
||||||||||||
|
Definition at line 159 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::hasFlag(). |
|
|
Query for installed Sources.
Definition at line 169 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storedSources(). |
|
|
Add a new installed source.
Definition at line 175 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::storeSource(). |
|
|
Delete an installed source.
Definition at line 181 of file PersistentStorage.cc. References zypp::storage::PersistentStorage::Private::backend, d, and zypp::storage::Backend::deleteSource(). |
|
||||||||||||
|
Stream output Definition at line 191 of file PersistentStorage.cc. |
|
|
Definition at line 144 of file PersistentStorage.h. Referenced by deleteObject(), deleteSource(), doesObjectHasFlag(), doTest(), flags(), hasFlag(), init(), isInitialized(), objectFlags(), PersistentStorage(), removeFlag(), removeObjectFlag(), setFlag(), setObjectFlag(), storedObjects(), storedSources(), storeObject(), and storeSource(). |
1.4.6