16ceb9b667806a30a42456fb10ad6b6976575f7b
[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
16 #include <string>
17 #include "zypp/solver/detail/Resolver.h"
18
19 /////////////////////////////////////////////////////////////////////////
20 namespace zypp
21 { ///////////////////////////////////////////////////////////////////////
22   ///////////////////////////////////////////////////////////////////////
23   namespace solver
24   { /////////////////////////////////////////////////////////////////////
25     /////////////////////////////////////////////////////////////////////
26     namespace detail
27     { ///////////////////////////////////////////////////////////////////
28
29       ///////////////////////////////////////////////////////////////////
30       //
31       //        CLASS NAME : Testcase
32       /**
33        * Generating a testcase of the current pool and solver state.
34        **/
35       class Testcase
36       {
37         private:
38           std::string dumpPath; // Path of the generated testcase
39
40         public:
41           Testcase();
42           Testcase( const std::string & path );
43           ~Testcase();
44
45           bool createTestcase( Resolver & resolver, bool dumpPool = true, bool runSolver = true );
46       };
47
48       ///////////////////////////////////////////////////////////////////
49     };// namespace detail
50     /////////////////////////////////////////////////////////////////////
51     /////////////////////////////////////////////////////////////////////
52   };// namespace solver
53   ///////////////////////////////////////////////////////////////////////
54   ///////////////////////////////////////////////////////////////////////
55 };// namespace zypp
56 /////////////////////////////////////////////////////////////////////////
57
58 #endif // ZYPP_SOLVER_DETAIL_TESTCASE_H