libzypp 17.38.6
zyppng::sat::namespaces::FilesystemNamespaceProvider Class Reference

Provider for NAMESPACE_FILESYSTEM. More...

#include <zypp/ng/sat/namespaces/filesystem.h>

Inheritance diagram for zyppng::sat::namespaces::FilesystemNamespaceProvider:

Public Member Functions

 FilesystemNamespaceProvider ()=default
const std::set< std::string > & requiredFilesystems () const
void checkDirty (Pool &pool) override
 checkDirty
bool isSatisfied (detail::IdType value) const override
 Check if a specific value satisfies this namespace condition.
Public Member Functions inherited from zyppng::sat::NamespaceProvider
virtual ~NamespaceProvider ()=default
virtual void prepare (Pool &)
 prepare
virtual void onReset (Pool &)
virtual void attach (Pool &pool)

Private Attributes

std::optional< std::set< std::string > > _requiredFilesystems
 filesystems mentioned in /etc/sysconfig/storage, mutable for lazy init

Additional Inherited Members

Protected Member Functions inherited from zyppng::sat::NamespaceProvider
void notifyDirty (PoolInvalidation invalidationLevel, std::initializer_list< std::string_view > reasons)
 Notify the attached registry/pool that data has changed.
Protected Attributes inherited from zyppng::sat::NamespaceProvider
Pool_pool = nullptr

Detailed Description

Provider for NAMESPACE_FILESYSTEM.

Checks for required filesystems (e.g., from /etc/sysconfig/storage).

Definition at line 28 of file filesystem.h.

Constructor & Destructor Documentation

◆ FilesystemNamespaceProvider()

zyppng::sat::namespaces::FilesystemNamespaceProvider::FilesystemNamespaceProvider ( )
default

Member Function Documentation

◆ requiredFilesystems()

const std::set< std::string > & zyppng::sat::namespaces::FilesystemNamespaceProvider::requiredFilesystems ( ) const

Definition at line 43 of file filesystem.cc.

◆ checkDirty()

void zyppng::sat::namespaces::FilesystemNamespaceProvider::checkDirty ( Pool & )
overridevirtual

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 from zyppng::sat::NamespaceProvider.

Definition at line 34 of file filesystem.cc.

◆ isSatisfied()

bool zyppng::sat::namespaces::FilesystemNamespaceProvider::isSatisfied ( detail::IdType value) const
overridevirtual

Check if a specific value satisfies this namespace condition.

Parameters
valueThe id value to check (e.g., "en_US" for a locale namespace).
Returns
True if the condition is met, false otherwise.

This method is typically called via the libsolv namespace callback during dependency resolution.

Reimplemented from zyppng::sat::NamespaceProvider.

Definition at line 28 of file filesystem.cc.

Member Data Documentation

◆ _requiredFilesystems

std::optional<std::set<std::string> > zyppng::sat::namespaces::FilesystemNamespaceProvider::_requiredFilesystems
mutableprivate

filesystems mentioned in /etc/sysconfig/storage, mutable for lazy init

Definition at line 40 of file filesystem.h.


The documentation for this class was generated from the following files: