00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */ 00002 00003 /* 00004 * Copyright (c) 2005, 2006, 2007, 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_USER_DEP_SPEC_FWD_HH 00021 #define PALUDIS_GUARD_PALUDIS_USER_DEP_SPEC_FWD_HH 1 00022 00023 #include <paludis/util/attributes.hh> 00024 #include <paludis/util/options-fwd.hh> 00025 #include <paludis/util/exception.hh> 00026 #include <paludis/dep_spec-fwd.hh> 00027 #include <paludis/package_id-fwd.hh> 00028 #include <paludis/environment-fwd.hh> 00029 #include <paludis/version_spec-fwd.hh> 00030 #include <tr1/memory> 00031 #include <iosfwd> 00032 00033 namespace paludis 00034 { 00035 00036 #include <paludis/user_dep_spec-se.hh> 00037 00038 /** 00039 * Options for parse_user_package_dep_spec. 00040 * 00041 * \ingroup g_dep_spec 00042 * \since 0.26 00043 */ 00044 typedef Options<UserPackageDepSpecOption> UserPackageDepSpecOptions; 00045 00046 /** 00047 * Thrown by paludis::parse_user_package_dep_spec if options includes 00048 * updso_throw_if_set and we're given a set. 00049 * 00050 * \since 0.28 00051 * \ingroup g_dep_spec 00052 * \ingroup g_exceptions 00053 */ 00054 class PALUDIS_VISIBLE GotASetNotAPackageDepSpec : 00055 public Exception 00056 { 00057 public: 00058 ///\name Basic Operations 00059 ///\{ 00060 00061 GotASetNotAPackageDepSpec(const std::string &) throw (); 00062 00063 ///\} 00064 }; 00065 00066 struct UserSlotExactRequirement; 00067 00068 struct UserKeyRequirement; 00069 00070 /** 00071 * The VersionSpecOptions to use for parsing a user spec. 00072 * 00073 * \since 0.38 00074 * \ingroup g_dep_spec 00075 */ 00076 VersionSpecOptions user_version_spec_options() PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE; 00077 } 00078 00079 #endif