libzypp 17.31.23
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
18namespace 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
String related utilities and Regular expression matching.
std::string asString(TInt val, char zero='0', char one='1')
For printing bits.
Definition: Bit.h:57
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
bool fromString(const std::string &val_r, ResolverFocus &ret_r)
ResolverFocus
The resolver's general attitude.
Definition: ResolverFocus.h:22
@ Update
Focus on updating requested packages and their dependencies as much as possible.
@ Default
Request the standard behavior (as defined in zypp.conf or 'Job')
@ Installed
Focus on applying as little changes to the installed packages as needed.
@ Job
Focus on installing the best version of the requested packages.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52