#include <Backend.h>
Public Member Functions | |
| Backend (const Pathname &root) | |
| root is the system root path | |
| virtual | ~Backend () |
| Dtor. | |
| virtual void | doTest ()=0 |
| virtual bool | isBackendInitialized () const =0 |
| is the storage backend initialized | |
| virtual void | initBackend ()=0 |
| initialize the storage backend | |
| virtual Date | timestamp () const =0 |
| timestamp of last modification | |
| virtual void | storeObject (ResObject::constPtr resolvable)=0 |
| Stores a Resolvable in the active backend. | |
| virtual void | deleteObject (ResObject::constPtr resolvable)=0 |
| Deletes a Resolvable from the active backend. | |
| virtual std::list < ResObject::Ptr > | storedObjects () const =0 |
| Query for installed Resolvables. | |
| virtual std::list < ResObject::Ptr > | storedObjects (const Resolvable::Kind) const =0 |
| Query for installed Resolvables of a certain kind. | |
| virtual std::list < ResObject::Ptr > | storedObjects (const Resolvable::Kind, const std::string &name, bool partial_match=false) const =0 |
| Query for installed Resolvables of a certain kind by name partial_match allows for text search. | |
| virtual void | setObjectFlag (ResObject::constPtr resolvable, const std::string &flag)=0 |
| virtual void | removeObjectFlag (ResObject::constPtr resolvable, const std::string &flag)=0 |
| virtual std::set < std::string > | objectFlags (ResObject::constPtr resolvable) const =0 |
| virtual bool | doesObjectHasFlag (ResObject::constPtr resolvable, const std::string &flag) const =0 |
| virtual void | setFlag (const std::string &key, const std::string &flag)=0 |
| virtual void | removeFlag (const std::string &key, const std::string &flag)=0 |
| virtual std::set < std::string > | flags (const std::string &key) const =0 |
| virtual bool | hasFlag (const std::string &key, const std::string &flag) const =0 |
Private Attributes | |
| Private * | d |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const Backend &obj) |
| Stream output. | |
Classes | |
| class | Private |
Definition at line 37 of file Backend.h.
| zypp::storage::Backend::Backend | ( | const Pathname & | root | ) |
| zypp::storage::Backend::~Backend | ( | ) | [virtual] |
| virtual void zypp::storage::Backend::doTest | ( | ) | [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual bool zypp::storage::Backend::isBackendInitialized | ( | ) | const [pure virtual] |
| virtual void zypp::storage::Backend::initBackend | ( | ) | [pure virtual] |
| virtual Date zypp::storage::Backend::timestamp | ( | ) | const [pure virtual] |
| virtual void zypp::storage::Backend::storeObject | ( | ResObject::constPtr | resolvable | ) | [pure virtual] |
| virtual void zypp::storage::Backend::deleteObject | ( | ResObject::constPtr | resolvable | ) | [pure virtual] |
| virtual std::list<ResObject::Ptr> zypp::storage::Backend::storedObjects | ( | ) | const [pure virtual] |
| virtual std::list<ResObject::Ptr> zypp::storage::Backend::storedObjects | ( | const Resolvable::Kind | ) | const [pure virtual] |
| virtual std::list<ResObject::Ptr> zypp::storage::Backend::storedObjects | ( | const Resolvable::Kind | , | |
| const std::string & | name, | |||
| bool | partial_match = false | |||
| ) | const [pure virtual] |
Query for installed Resolvables of a certain kind by name partial_match allows for text search.
Implemented in zypp::storage::XMLFilesBackend.
| virtual void zypp::storage::Backend::setObjectFlag | ( | ResObject::constPtr | resolvable, | |
| const std::string & | flag | |||
| ) | [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual void zypp::storage::Backend::removeObjectFlag | ( | ResObject::constPtr | resolvable, | |
| const std::string & | flag | |||
| ) | [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual std::set<std::string> zypp::storage::Backend::objectFlags | ( | ResObject::constPtr | resolvable | ) | const [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual bool zypp::storage::Backend::doesObjectHasFlag | ( | ResObject::constPtr | resolvable, | |
| const std::string & | flag | |||
| ) | const [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual void zypp::storage::Backend::setFlag | ( | const std::string & | key, | |
| const std::string & | flag | |||
| ) | [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual void zypp::storage::Backend::removeFlag | ( | const std::string & | key, | |
| const std::string & | flag | |||
| ) | [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual std::set<std::string> zypp::storage::Backend::flags | ( | const std::string & | key | ) | const [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| virtual bool zypp::storage::Backend::hasFlag | ( | const std::string & | key, | |
| const std::string & | flag | |||
| ) | const [pure virtual] |
Implemented in zypp::storage::XMLFilesBackend.
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const Backend & | obj | |||
| ) | [friend] |
Private* zypp::storage::Backend::d [private] |
1.5.3