elike_slot_requirement.hh

00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */
00002 
00003 /*
00004  * Copyright (c) 2008 Ciaran McCreesh
00005  *
00006  * This file is part of the Paludis package manager. Paludis is free software;
00007  * you can redistribute it and/or modify it under the terms of the GNU General
00008  * Public License version 2, as published by the Free Software Foundation.
00009  *
00010  * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
00011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00012  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00013  * details.
00014  *
00015  * You should have received a copy of the GNU General Public License along with
00016  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00017  * Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #ifndef PALUDIS_GUARD_PALUDIS_ELIKE_SLOT_REQUIREMENT_HH
00021 #define PALUDIS_GUARD_PALUDIS_ELIKE_SLOT_REQUIREMENT_HH 1
00022 
00023 #include <paludis/elike_slot_requirement-fwd.hh>
00024 #include <paludis/slot_requirement.hh>
00025 #include <paludis/name.hh>
00026 
00027 namespace paludis
00028 {
00029     class PALUDIS_VISIBLE ELikeSlotExactRequirement :
00030         public SlotExactRequirement
00031     {
00032         private:
00033             const SlotName _s;
00034             const bool _e;
00035 
00036         public:
00037             ELikeSlotExactRequirement(const SlotName &, const bool equals);
00038 
00039             virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
00040             virtual const SlotName slot() const PALUDIS_ATTRIBUTE((warn_unused_result));
00041     };
00042 
00043     class PALUDIS_VISIBLE ELikeSlotAnyUnlockedRequirement :
00044         public SlotAnyUnlockedRequirement
00045     {
00046         public:
00047             virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
00048     };
00049 
00050     class PALUDIS_VISIBLE ELikeSlotAnyLockedRequirement :
00051         public SlotAnyLockedRequirement
00052     {
00053         public:
00054             virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
00055     };
00056 }
00057 
00058 #endif

Generated on Mon Sep 21 10:36:08 2009 for paludis by  doxygen 1.5.4