libzypp  17.38.7
modalias.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_MODALIAS_H_INCLUDED
15 #define ZYPP_NG_SAT_NAMESPACES_MODALIAS_H_INCLUDED
16 
18 #include <string>
19 #include <functional>
20 
21 namespace zyppng::sat::namespaces {
22 
28  public:
29  ModaliasNamespaceProvider() = default;
30  bool isSatisfied( detail::IdType value ) const override;
31 
36  using ModaliasQuery = std::function<bool(const std::string &)>;
37  void setQueryCallback( ModaliasQuery query ) { _query = std::move(query); }
38 
39  private:
41  };
42 
43 }
44 
45 #endif
bool isSatisfied(detail::IdType value) const override
Check if a specific value satisfies this namespace condition.
Definition: modalias.cc:16
std::function< bool(const std::string &)> ModaliasQuery
Callback to perform the actual modalias query.
Definition: modalias.h:36
Provider for NAMESPACE_MODALIAS.
Definition: modalias.h:27
zypp::sat::detail::IdType IdType
Definition: poolconstants.h:43
Abstract base class for logic providing data to a libsolv namespace.
void setQueryCallback(ModaliasQuery query)
Definition: modalias.h:37