Cupt
native.hpp
Go to the documentation of this file.
1/**************************************************************************
2* Copyright (C) 2010 by Eugene V. Lyubimkin *
3* *
4* This program is free software; you can redistribute it and/or modify *
5* it under the terms of the GNU General Public License *
6* (version 3 or above) as published by the Free Software Foundation. *
7* *
8* This program is distributed in the hope that it will be useful, *
9* but WITHOUT ANY WARRANTY; without even the implied warranty of *
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11* GNU General Public License for more details. *
12* *
13* You should have received a copy of the GNU GPL *
14* along with this program; if not, write to the *
15* Free Software Foundation, Inc., *
16* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17**************************************************************************/
18#ifndef CUPT_SYSTEM_RESOLVERS_NATIVE
19#define CUPT_SYSTEM_RESOLVERS_NATIVE
20
22
25
26namespace cupt {
27
28namespace internal {
29
30class NativeResolverImpl;
31
32}
33
34namespace system {
35
37class CUPT_API NativeResolver: public Resolver
38{
39 internal::NativeResolverImpl* __impl;
40
41 public:
43 NativeResolver(const shared_ptr< const Config >&, const shared_ptr< const Cache >&);
44
45 void satisfyRelationExpression(const RelationExpression&, bool, const string&, RequestImportance, bool);
46 void upgrade();
47 void setAutomaticallyInstalledFlag(const string&, bool);
48
50
52};
53
54}
55}
56
57#endif
58
library's problem resolver implementation
Definition: native.hpp:38
void setAutomaticallyInstalledFlag(const string &, bool)
bool resolve(Resolver::CallbackType)
perform a resolve computations
void satisfyRelationExpression(const RelationExpression &, bool, const string &, RequestImportance, bool)
NativeResolver(const shared_ptr< const Config > &, const shared_ptr< const Cache > &)
constructor
dependency problems resolver
Definition: resolver.hpp:43
std::function< UserAnswer::Type(const Offer &) > CallbackType
callback function type
Definition: resolver.hpp:149
group of alternative relations
Definition: relation.hpp:110
Definition: resolver.hpp:152