|
libzypp 17.38.6
|
Abstract base class for logic providing data to a libsolv namespace. More...
#include <zypp/ng/sat/namespaces/namespaceprovider.h>

Public Member Functions | |
| virtual | ~NamespaceProvider ()=default |
| virtual bool | isSatisfied (detail::IdType value) const |
| Check if a specific value satisfies this namespace condition. | |
| virtual void | checkDirty (Pool &) |
| checkDirty | |
| virtual void | prepare (Pool &) |
| prepare | |
| virtual void | onReset (Pool &) |
| virtual void | attach (Pool &pool) |
Protected Member Functions | |
| void | notifyDirty (PoolInvalidation invalidationLevel, std::initializer_list< std::string_view > reasons) |
| Notify the attached registry/pool that data has changed. | |
Protected Attributes | |
| Pool * | _pool = nullptr |
Abstract base class for logic providing data to a libsolv namespace.
A NamespaceProvider acts as the "Source of Truth" for specific dependency types (e.g., Locales, Modaliases, or Filesystem paths). It decouples high-level configuration logic from the low-level pool implementation.
Definition at line 35 of file namespaceprovider.h.
|
virtualdefault |
|
virtual |
Check if a specific value satisfies this namespace condition.
| value | The id value to check (e.g., "en_US" for a locale namespace). |
This method is typically called via the libsolv namespace callback during dependency resolution.
Reimplemented in zyppng::sat::namespaces::FilesystemNamespaceProvider, zyppng::sat::namespaces::LanguageNamespaceProvider, and zyppng::sat::namespaces::ModaliasNamespaceProvider.
Definition at line 16 of file namespaceprovider.cc.
|
inlinevirtual |
checkDirty
Called before the pool prepare sequence starts. This is the correct place to probe external state and call pool.setDirty() if needed. The default implementation does nothing.
Reimplemented in zyppng::sat::namespaces::FilesystemNamespaceProvider.
Definition at line 55 of file namespaceprovider.h.
|
inlinevirtual |
prepare
Called during the pre-index phase of pool preparation, after checkDirty() and before pool_createwhatprovides(). Use this to set up any state the libsolv namespace callback needs to answer queries correctly during index construction. The default implementation does nothing.
Definition at line 66 of file namespaceprovider.h.
|
inlinevirtual |
Reimplemented in zyppng::sat::namespaces::LanguageNamespaceProvider.
Definition at line 68 of file namespaceprovider.h.
|
virtual |
Attaching to a pool, default just stores a backlink pointer to the pool.
Definition at line 21 of file namespaceprovider.cc.
|
protected |
Notify the attached registry/pool that data has changed.
Definition at line 26 of file namespaceprovider.cc.
|
protected |
Definition at line 85 of file namespaceprovider.h.