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_HH 00021 #define PALUDIS_GUARD_PALUDIS_VERSION_REQUIREMENTS_HH 1 00022 00023 #include <paludis/version_requirements-fwd.hh> 00024 #include <paludis/version_operator.hh> 00025 #include <paludis/version_spec.hh> 00026 #include <paludis/util/named_value.hh> 00027 00028 /** \file 00029 * Declarations for version requirements classes. 00030 * 00031 * \ingroup g_dep_spec 00032 * 00033 * \section Examples 00034 * 00035 * - \ref example_dep_spec.cc "example_dep_spec.cc" (for specifications) 00036 */ 00037 00038 namespace paludis 00039 { 00040 namespace n 00041 { 00042 struct version_operator; 00043 struct version_spec; 00044 } 00045 00046 /** 00047 * A requirement for a version, consisting of a VersionOperator and an associated 00048 * VersionSpec. 00049 * 00050 * \ingroup g_dep_spec 00051 * \see PackageDepSpec 00052 * \see VersionSpec 00053 * \see VersionOperator 00054 * \see VersionRequirements 00055 * \nosubgrouping 00056 */ 00057 struct VersionRequirement 00058 { 00059 NamedValue<n::version_operator, VersionOperator> version_operator; 00060 NamedValue<n::version_spec, VersionSpec> version_spec; 00061 }; 00062 } 00063 00064 #endif