/* vim: set sw=4 sts=4 et foldmethod=syntax : */ /* * Copyright (c) 2007, 2008, 2009, 2010, 2011 Ciaran McCreesh * * This file is part of the Paludis package manager. Paludis is free software; * you can redistribute it and/or modify it under the terms of the GNU General * Public License version 2, as published by the Free Software Foundation. * * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include #include #include #include using namespace paludis; #include Action::~Action() { } namespace paludis { template <> struct Imp { const InstallActionOptions options; Imp(const InstallActionOptions & o) : options(o) { } }; } InstallAction::InstallAction(const InstallActionOptions & o) : _imp(o), options(_imp->options) { } InstallAction::~InstallAction() { } namespace paludis { template <> struct Imp { const FetchActionOptions options; Imp(const FetchActionOptions & o) : options(o) { } }; } FetchAction::FetchAction(const FetchActionOptions & o) : _imp(o), options(_imp->options) { } FetchAction::~FetchAction() { } namespace paludis { template <> struct Imp { const UninstallActionOptions options; Imp(const UninstallActionOptions & o) : options(o) { } }; } UninstallAction::UninstallAction(const UninstallActionOptions & o) : _imp(o), options(_imp->options) { } UninstallAction::~UninstallAction() { } namespace paludis { template <> struct Imp { bool failed; const PretendActionOptions options; Imp(const PretendActionOptions & o) : failed(false), options(o) { } }; } PretendAction::PretendAction(const PretendActionOptions & o) : _imp(o), options(_imp->options) { } PretendAction::~PretendAction() { } bool PretendAction::failed() const { return _imp->failed; } void PretendAction::set_failed() { _imp->failed = true; } namespace paludis { template <> struct Imp { const FetchActionOptions options; Imp(const FetchActionOptions & o) : options(o) { } }; } PretendFetchAction::PretendFetchAction(const FetchActionOptions & o) : _imp(o), options(_imp->options) { } PretendFetchAction::~PretendFetchAction() { } namespace paludis { template <> struct Imp { const InfoActionOptions options; Imp(const InfoActionOptions & o) : options(o) { } }; } InfoAction::InfoAction(const InfoActionOptions & o) : _imp(o), options(_imp->options) { } InfoAction::~InfoAction() { } namespace paludis { template <> struct Imp { const ConfigActionOptions options; Imp(const ConfigActionOptions & o) : options(o) { } }; } ConfigAction::ConfigAction(const ConfigActionOptions & o) : _imp(o), options(_imp->options) { } ConfigAction::~ConfigAction() { } SupportsActionTestBase::~SupportsActionTestBase() { } ActionFailedError::ActionFailedError(const std::string & msg) throw () : Exception(msg) { } ActionAbortedError::ActionAbortedError(const std::string & msg) throw () : Exception(msg) { } const std::string FetchAction::simple_name() const { return FetchAction::class_simple_name(); } const std::string InstallAction::simple_name() const { return InstallAction::class_simple_name(); } const std::string UninstallAction::simple_name() const { return UninstallAction::class_simple_name(); } const std::string PretendAction::simple_name() const { return PretendAction::class_simple_name(); } const std::string PretendFetchAction::simple_name() const { return PretendFetchAction::class_simple_name(); } const std::string ConfigAction::simple_name() const { return ConfigAction::class_simple_name(); } const std::string InfoAction::simple_name() const { return InfoAction::class_simple_name(); } const std::string FetchAction::class_simple_name() { return "fetch"; } const std::string FetchAction::ignore_unfetched_flag_name() { return "ignore_unfetched"; } const std::string InstallAction::class_simple_name() { return "install"; } const std::string UninstallAction::class_simple_name() { return "uninstall"; } const std::string PretendAction::class_simple_name() { return "pretend"; } const std::string PretendFetchAction::class_simple_name() { return "pretend-fetch"; } const std::string InfoAction::class_simple_name() { return "info"; } const std::string ConfigAction::class_simple_name() { return "config"; } namespace paludis { template class Pimp; template class Pimp; template class Pimp; template class Pimp; template class Pimp; template class Pimp; template class Pimp; template class Sequence; template class WrappedForwardIterator::ConstIteratorTag, const FetchActionFailure>; template class WrappedOutputIterator::InserterTag, FetchActionFailure>; }