version_requirements-fwd.hh

Go to the documentation of this file.
00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */
00002 
00003 /*
00004  * Copyright (c) 2006, 2007, 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_VERSION_REQUIREMENTS_FWD_HH
00021 #define PALUDIS_GUARD_PALUDIS_VERSION_REQUIREMENTS_FWD_HH 1
00022 
00023 #include <paludis/util/sequence-fwd.hh>
00024 #include <paludis/util/attributes.hh>
00025 #include <paludis/version_spec-fwd.hh>
00026 #include <tr1/memory>
00027 #include <iosfwd>
00028 
00029 /** \file
00030  * Forward declarations for paludis/version_requirements.hh .
00031  *
00032  * \ingroup g_dep_spec
00033  */
00034 
00035 namespace paludis
00036 {
00037     class VersionRequirement;
00038 
00039     /**
00040      * A collection of VersionRequirement instances, usually for a
00041      * PackageDepSpec.
00042      *
00043      * \see PackageDepSpec
00044      * \ingroup g_dep_spec
00045      */
00046     typedef Sequence<VersionRequirement> VersionRequirements;
00047 
00048     /**
00049      * Whether our version requirements are an 'and' or an 'or' set.
00050      *
00051      * \see PackageDepSpec
00052      * \ingroup g_dep_spec
00053      */
00054     enum VersionRequirementsMode
00055     {
00056         vr_or,     ///< Must match one
00057         vr_and,    ///< Must match all
00058         last_vr
00059     };
00060 
00061     /**
00062      * Write a VersionRequirementsMode to a stream.
00063      *
00064      * \ingroup g_dep_spec
00065      */
00066     std::ostream &
00067     operator<< (std::ostream &, const VersionRequirementsMode &) PALUDIS_VISIBLE;
00068 
00069 }
00070 
00071 #endif

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