1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
4 * Copyright (C) 2008 SUSE Linux Products GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 #ifndef ZYPP_SOLVER_DETAIL_QUEUEITEMINSTALLONEOF_H
22 #define ZYPP_SOLVER_DETAIL_QUEUEITEMINSTALLONEOF_H
27 #include "zypp/solver/detail/SolverQueueItem.h"
29 /////////////////////////////////////////////////////////////////////////
31 { ///////////////////////////////////////////////////////////////////////
32 ///////////////////////////////////////////////////////////////////////
34 { /////////////////////////////////////////////////////////////////////
35 /////////////////////////////////////////////////////////////////////
37 { ///////////////////////////////////////////////////////////////////
39 ///////////////////////////////////////////////////////////////////
41 // CLASS NAME : SolverQueueItemInstallOneOf
43 class SolverQueueItemInstallOneOf : public SolverQueueItem {
46 typedef std::list<PoolItem> PoolItemList;
50 PoolItemList _oneOfList; // List of candidates
54 SolverQueueItemInstallOneOf (const ResPool & pool, const PoolItemList & itemList);
55 virtual ~SolverQueueItemInstallOneOf();
57 // ---------------------------------- I/O
59 virtual std::ostream & dumpOn( std::ostream & str ) const;
61 friend std::ostream& operator<<(std::ostream & str, const SolverQueueItemInstallOneOf & obj)
62 { return obj.dumpOn (str); }
64 // ---------------------------------- methods
66 virtual bool addRule (_Queue & q);
67 virtual SolverQueueItem_Ptr copy (void) const;
68 virtual int cmp (SolverQueueItem_constPtr item) const;
71 ///////////////////////////////////////////////////////////////////
73 /////////////////////////////////////////////////////////////////////
74 /////////////////////////////////////////////////////////////////////
76 ///////////////////////////////////////////////////////////////////////
77 ///////////////////////////////////////////////////////////////////////
79 /////////////////////////////////////////////////////////////////////////
81 #endif // ZYPP_SOLVER_DETAIL_QUEUEITEMINSTALLONEOF_H