00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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