libzypp: zypp/ng/sat/namespaces/namespaceprovider.cc Source File

libzypp 17.38.14

namespaceprovider.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "namespaceprovider.h"
10
11#include <zypp/ng/sat/pool.h>
12#include <zypp-core/base/LogTools.h>
13
14namespace zyppng::sat {
15
16 bool NamespaceProvider::isSatisfied( detail::IdType ) const
17 {
18 return false;
19 }
20
21 void NamespaceProvider::attach(Pool &pool)
22 {
23 _pool = &pool;
24 }
25
26 void NamespaceProvider::notifyDirty( PoolInvalidation invalidationLevel, std::initializer_list<std::string_view> reasons )
27 {
28 if (!_pool) {
29 ERR << "NamespaceProvider not attached, can not send the invalidation request" << std::endl;
30 return;
31 }
32 _pool->setDirty ( invalidationLevel, std::move(reasons) );
33 }
34
35}
LogTools.h
ERR
#define ERR
Definition Logger.h:105
zyppng::sat::NamespaceProvider::isSatisfied
virtual bool isSatisfied(detail::IdType value) const
Check if a specific value satisfies this namespace condition.
Definition namespaceprovider.cc:16
zyppng::sat::NamespaceProvider::notifyDirty
void notifyDirty(PoolInvalidation invalidationLevel, std::initializer_list< std::string_view > reasons)
Notify the attached registry/pool that data has changed.
Definition namespaceprovider.cc:26
zyppng::sat::NamespaceProvider::_pool
Pool * _pool
Definition namespaceprovider.h:85
zyppng::sat::NamespaceProvider::attach
virtual void attach(Pool &pool)
Definition namespaceprovider.cc:21
zyppng::sat::Pool
Orchestrator for a libsolv pool instance.
Definition pool.h:37
zyppng::sat::Pool::setDirty
void setDirty(PoolInvalidation invalidation, std::initializer_list< std::string_view > reasons)
Invalidate everything.
Definition pool.cc:152
namespaceprovider.h
zypp::pool
Definition ByIdent.h:24
zyppng::sat::detail::IdType
zypp::sat::detail::IdType IdType
Definition poolconstants.h:43
zyppng::sat
This file contains private API, this might break at any time between releases.
Definition capabilities.h:22
zyppng::sat::PoolInvalidation
PoolInvalidation
Defines the scope of an invalidation request for the Pool.
Definition poolconstants.h:66
pool.h