libzypp: zypp/ResolverFocus.h Source File

libzypp 17.25.10

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
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::fromString
bool fromString(const std::string &val_r, ResolverFocus &ret_r)
Definition: ResolverFocus.cc:39
zypp::asString
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
Definition: DefaultIntegral.h:98
zypp::ResolverFocus
ResolverFocus
The resolvers general attitude.
Definition: ResolverFocus.h:22
zypp::ResolverFocus::Update
@ Update
Focus on updating requested packages and their dependencies as much as possible.
zypp::ResolverFocus::Default
@ Default
Request the standard behavior (as defined in zypp.conf or 'Job')
zypp::ResolverFocus::Installed
@ Installed
Focus on applying as little changes to the installed packages as needed.
zypp::ResolverFocus::Job
@ Job
Focus on installing the best version of the requested packages.
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147