libzypp: zypp/ng/sat/namespaces/filesystem.h Source File

libzypp 17.38.10

filesystem.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14#ifndef ZYPP_NG_SAT_NAMESPACES_FILESYSTEM_H_INCLUDED
15#define ZYPP_NG_SAT_NAMESPACES_FILESYSTEM_H_INCLUDED
16
17#include <zypp/ng/sat/namespaces/namespaceprovider.h>
18#include <set>
19#include <string>
20#include <optional>
21
22namespace zyppng::sat::namespaces {
23
28 class FilesystemNamespaceProvider : public NamespaceProvider {
29 public:
30 FilesystemNamespaceProvider() = default;
31
32 const std::set<std::string> &requiredFilesystems() const;
33
34 // NamespaceProvider interface
35 void checkDirty( Pool & pool ) override;
36 bool isSatisfied( detail::IdType value) const override;
37
38 private:
40 mutable std::optional<std::set<std::string> > _requiredFilesystems;
41 };
42
43} // namespace zyppng::sat
44
45#endif
zyppng::sat::NamespaceProvider
Abstract base class for logic providing data to a libsolv namespace.
Definition namespaceprovider.h:35
zyppng::sat::Pool
Orchestrator for a libsolv pool instance.
Definition pool.h:37
zyppng::sat::namespaces::FilesystemNamespaceProvider::checkDirty
void checkDirty(Pool &pool) override
checkDirty
Definition filesystem.cc:34
zyppng::sat::namespaces::FilesystemNamespaceProvider::_requiredFilesystems
std::optional< std::set< std::string > > _requiredFilesystems
filesystems mentioned in /etc/sysconfig/storage, mutable for lazy init
Definition filesystem.h:40
zyppng::sat::namespaces::FilesystemNamespaceProvider::FilesystemNamespaceProvider
FilesystemNamespaceProvider()=default
zyppng::sat::namespaces::FilesystemNamespaceProvider::requiredFilesystems
const std::set< std::string > & requiredFilesystems() const
Definition filesystem.cc:43
zyppng::sat::namespaces::FilesystemNamespaceProvider::isSatisfied
bool isSatisfied(detail::IdType value) const override
Check if a specific value satisfies this namespace condition.
Definition filesystem.cc:28
namespaceprovider.h
zypp::pool
Definition ByIdent.h:24
zyppng::sat::detail::IdType
zypp::sat::detail::IdType IdType
Definition poolconstants.h:43
zyppng::sat::namespaces
Definition filesystem.cc:18