libzypp  17.16.0
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 
18 namespace zypp
19 {
21  enum class ResolverFocus
22  {
23  Default = 0
24  ,Job
25  ,Installed
26  ,Update
27  };
28 
30  std::string asString( const ResolverFocus & val_r );
31 
35  bool fromString( const std::string & val_r, ResolverFocus & ret_r );
36 
40  inline ResolverFocus resolverFocusFromString( const std::string & val_r )
41  { ResolverFocus ret_r { ResolverFocus::Default }; fromString( val_r, ret_r ); return ret_r; }
42 
44  inline std::ostream & operator<<( std::ostream & str, const ResolverFocus & obj )
45  { return str << asString( obj ); }
46 
47 } // namespace zypp
49 #endif // ZYPP_RESOLVERFOCUS_H
Focus on updating requested packages and their dependencies as much as possible.
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
ResolverFocus
The resolvers general attitude.
Definition: ResolverFocus.h:21
String related utilities and Regular expression matching.
Request the standard behavior (as defined in zypp.conf or 'Job')
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
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: CodePitfalls.doc:1
Focus on installing the best version of the requested packages.