libzypp 17.37.17
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
20namespace zypp
21{
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
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
bool fromString(const std::string &val_r, ResolverFocus &ret_r)
ResolverFocus
The resolver's general attitude.
@ 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)
std::string asString(const Patch::Category &obj)
Definition Patch.cc:122
#define ZYPP_API
Definition Globals.h:69