libzypp  17.35.15
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/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
std::string asString(const Patch::Category &obj)
Definition: Patch.cc:122
Focus on updating requested packages and their dependencies as much as possible.
ResolverFocus
The resolver&#39;s general attitude.
Definition: ResolverFocus.h:23
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52
Request the standard behavior (as defined in zypp.conf or &#39;Job&#39;)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition: ResTraits.h:93
Focus on applying as little changes to the installed packages as needed.
bool fromString(const std::string &val_r, ResolverFocus &ret_r)
Easy-to use interface to the ZYPP dependency resolver.
Definition: Application.cc:19
Focus on installing the best version of the requested packages.