libzypp 17.38.6
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
22
28 public:
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
Abstract base class for logic providing data to a libsolv namespace.
std::function< bool(const std::string &)> ModaliasQuery
Callback to perform the actual modalias query.
Definition modalias.h:36
bool isSatisfied(detail::IdType value) const override
Check if a specific value satisfies this namespace condition.
Definition modalias.cc:16
zypp::sat::detail::IdType IdType