libzypp  17.38.7
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>
13 
14 namespace zyppng::sat {
15 
17  {
18  return false;
19  }
20 
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 }
virtual bool isSatisfied(detail::IdType value) const
Check if a specific value satisfies this namespace condition.
virtual void attach(Pool &pool)
Orchestrator for a libsolv pool instance.
Definition: pool.h:36
#define ERR
Definition: Logger.h:105
This file contains private API, this might break at any time between releases.
Definition: capabilities.h:22
void setDirty(PoolInvalidation invalidation, std::initializer_list< std::string_view > reasons)
Invalidate everything.
Definition: pool.cc:152
zypp::sat::detail::IdType IdType
Definition: poolconstants.h:43
PoolInvalidation
Defines the scope of an invalidation request for the Pool.
Definition: poolconstants.h:66
void notifyDirty(PoolInvalidation invalidationLevel, std::initializer_list< std::string_view > reasons)
Notify the attached registry/pool that data has changed.