Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / solver / detail / Testcase.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/solver/detail/Testcase.h
10  *
11 */
12
13 #ifndef ZYPP_SOLVER_DETAIL_TESTCASE_H
14 #define ZYPP_SOLVER_DETAIL_TESTCASE_H
15 #ifndef ZYPP_USE_RESOLVER_INTERNALS
16 #error Do not directly include this file!
17 #else
18
19 #include <string>
20
21 /////////////////////////////////////////////////////////////////////////
22 namespace zypp
23 { ///////////////////////////////////////////////////////////////////////
24   ///////////////////////////////////////////////////////////////////////
25   namespace solver
26   { /////////////////////////////////////////////////////////////////////
27     /////////////////////////////////////////////////////////////////////
28     namespace detail
29     { ///////////////////////////////////////////////////////////////////
30
31       class Resolver;
32
33       ///////////////////////////////////////////////////////////////////
34       //
35       //        CLASS NAME : Testcase
36       /**
37        * Generating a testcase of the current pool and solver state.
38        **/
39       class Testcase
40       {
41         private:
42           std::string dumpPath; // Path of the generated testcase
43
44         public:
45           Testcase();
46           Testcase( const std::string & path );
47           ~Testcase();
48
49           bool createTestcase( Resolver & resolver, bool dumpPool = true, bool runSolver = true );
50       };
51
52       ///////////////////////////////////////////////////////////////////
53     };// namespace detail
54     /////////////////////////////////////////////////////////////////////
55     /////////////////////////////////////////////////////////////////////
56   };// namespace solver
57   ///////////////////////////////////////////////////////////////////////
58   ///////////////////////////////////////////////////////////////////////
59 };// namespace zypp
60 /////////////////////////////////////////////////////////////////////////
61 #endif // ZYPP_USE_RESOLVER_INTERNALS
62 #endif // ZYPP_SOLVER_DETAIL_TESTCASE_H