ResolverInfoMissingReq.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* ResolverInfoMissingReq.h
00003  *
00004  * Copyright (C) 2000-2002 Ximian, Inc.
00005  * Copyright (C) 2005 SUSE Linux Products GmbH
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License,
00009  * version 2, as published by the Free Software Foundation.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019  * 02111-1307, USA.
00020  */
00021 
00022 #ifndef ZYPP_SOLVER_DETAIL_RESOLVERINFOMISSINGREQ_H
00023 #define ZYPP_SOLVER_DETAIL_RESOLVERINFOMISSINGREQ_H
00024 
00025 #include "zypp/solver/detail/Types.h"
00026 #include "zypp/solver/detail/ResolverInfo.h"
00027 #include "zypp/Capability.h"
00028 
00030 namespace zypp
00031 { 
00032 
00033   namespace solver
00034   { 
00035 
00036     namespace detail
00037     { 
00038 
00040 //
00041 //      CLASS NAME : ResolverInfoMissingReq
00042 
00043 class ResolverInfoMissingReq : public ResolverInfo {
00044 
00045   private:
00046 
00047     const Capability  _missing;
00048 
00049   public:
00050 
00051     ResolverInfoMissingReq (PoolItem_Ref item, const Capability & missing);
00052     virtual ~ResolverInfoMissingReq();
00053 
00054     // ---------------------------------- I/O
00055 
00056     virtual std::ostream & dumpOn( std::ostream & str ) const;
00057     friend std::ostream& operator<<(std::ostream & str, const ResolverInfoMissingReq & obj)
00058     { return obj.dumpOn (str); }
00059 
00060     // ---------------------------------- accessors
00061 
00062     const Capability capability (void) const { return _missing; }
00063 
00064     // ---------------------------------- methods
00065 
00066     virtual ResolverInfo_Ptr copy (void) const;
00067     virtual std::string message (void) const;
00068 
00069 };
00070 
00072     };// namespace detail
00075   };// namespace solver
00078 };// namespace zypp
00080 
00081 #endif // ZYPP_SOLVER_DETAIL_RESOLVERINFOMISSINGREQ_H
00082 

Generated on Thu Jul 6 00:07:23 2006 for zypp by  doxygen 1.4.6