elike_package_dep_spec.hh

00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */
00002 
00003 /*
00004  * Copyright (c) 2008, 2009 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_PACKAGE_DEP_SPEC_HH
00021 #define PALUDIS_GUARD_PALUDIS_ELIKE_PACKAGE_DEP_SPEC_HH 1
00022 
00023 #include <paludis/elike_package_dep_spec-fwd.hh>
00024 #include <paludis/util/named_value.hh>
00025 
00026 namespace paludis
00027 {
00028     namespace n
00029     {
00030         struct add_package_requirement;
00031         struct add_version_requirement;
00032         struct check_sanity;
00033         struct get_remove_trailing_version;
00034         struct get_remove_version_operator;
00035         struct has_version_operator;
00036         struct options_for_partially_made_package_dep_spec;
00037         struct remove_trailing_repo_if_exists;
00038         struct remove_trailing_slot_if_exists;
00039         struct remove_trailing_square_bracket_if_exists;
00040     }
00041 
00042     struct GenericELikePackageDepSpecParseFunctions
00043     {
00044         NamedValue<n::add_package_requirement, std::tr1::function<void (const std::string &, PartiallyMadePackageDepSpec &)> > add_package_requirement;
00045         NamedValue<n::add_version_requirement, std::tr1::function<void (const VersionOperator &, const VersionSpec &, PartiallyMadePackageDepSpec &)> > add_version_requirement;
00046         NamedValue<n::check_sanity, std::tr1::function<void (const std::string &)> > check_sanity;
00047         NamedValue<n::get_remove_trailing_version, std::tr1::function<VersionSpec (std::string &)> > get_remove_trailing_version;
00048         NamedValue<n::get_remove_version_operator, std::tr1::function<VersionOperator (std::string &)> > get_remove_version_operator;
00049         NamedValue<n::has_version_operator, std::tr1::function<bool (const std::string &)> > has_version_operator;
00050         NamedValue<n::options_for_partially_made_package_dep_spec, std::tr1::function<const PartiallyMadePackageDepSpecOptions ()> > options_for_partially_made_package_dep_spec;
00051         NamedValue<n::remove_trailing_repo_if_exists, std::tr1::function<void (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_repo_if_exists;
00052         NamedValue<n::remove_trailing_slot_if_exists, std::tr1::function<void (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_slot_if_exists;
00053         NamedValue<n::remove_trailing_square_bracket_if_exists, std::tr1::function<bool (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_square_bracket_if_exists;
00054     };
00055 }
00056 
00057 #endif

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