libzypp  17.38.7
ResolverFocus.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
11 #ifndef ZYPP_RESOLVERFOCUS_H
12 #define ZYPP_RESOLVERFOCUS_H
13 
14 #include <iosfwd>
15 #include <string>
16 
17 #include <zypp-core/Globals.h>
18 
20 namespace zypp
21 {
23  enum class ResolverFocus
24  {
25  Default = 0
26  ,Job
27  ,Installed
28  ,Update
29  };
30 
32  std::string asString( const ResolverFocus & val_r ) ZYPP_API;
33 
37  bool fromString( const std::string & val_r, ResolverFocus & ret_r ) ZYPP_API;
38 
42  inline ResolverFocus resolverFocusFromString( const std::string & val_r )
43  { ResolverFocus ret_r { ResolverFocus::Default }; fromString( val_r, ret_r ); return ret_r; }
44 
46  inline std::ostream & operator<<( std::ostream & str, const ResolverFocus & obj )
47  { return str << asString( obj ); }
48 
49 } // namespace zypp
51 #endif // ZYPP_RESOLVERFOCUS_H
Focus on updating requested packages and their dependencies as much as possible.
std::string asString(const Patch::Category &obj)
relates: Patch::Category string representation.
Definition: Patch.cc:122
ResolverFocus
The resolver&#39;s general attitude.
Definition: ResolverFocus.h:23
String related utilities and Regular expression matching.
Request the standard behavior (as defined in zypp.conf or &#39;Job&#39;)
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition: Arch.h:173
Provides API related macros.
Focus on applying as little changes to the installed packages as needed.
bool fromString(const std::string &val_r, ResolverFocus &ret_r)
relates: ResolverFocus Conversion from string (enumerator name, case insensitive, empty string is Def...
ResolverFocus resolverFocusFromString(const std::string &val_r)
relates: ResolverFocus Conversion from string (convenience)
Definition: ResolverFocus.h:42
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
Definition: Capabilities.cc:65
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
Focus on installing the best version of the requested packages.