aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eapi_phase.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-28 21:45:56 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-28 21:45:56 +0000
commit45692e817c0a0c4b4f2ebc91501987efecff23aa (patch)
treeaf997ccbbb94eda5b55271ac1ba763ac49dc5540 /paludis/repositories/e/eapi_phase.hh
parente73fa3ac11891c1db89e1a600b1edeb9395d86c9 (diff)
downloadpaludis-45692e817c0a0c4b4f2ebc91501987efecff23aa.tar.gz
paludis-45692e817c0a0c4b4f2ebc91501987efecff23aa.tar.xz
r3634@snowflake: ciaranm | 2007-06-28 22:45:19 +0100
We'll call it 'E', not 'Gentoo'
Diffstat (limited to 'paludis/repositories/e/eapi_phase.hh')
-rw-r--r--paludis/repositories/e/eapi_phase.hh93
1 files changed, 93 insertions, 0 deletions
diff --git a/paludis/repositories/e/eapi_phase.hh b/paludis/repositories/e/eapi_phase.hh
new file mode 100644
index 000000000..10e4a6da1
--- /dev/null
+++ b/paludis/repositories/e/eapi_phase.hh
@@ -0,0 +1,93 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
+ *
+ * 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
+ */
+
+#ifndef PALUDIS_GUARD_PALUDIS_REPOSITORIES_GENTOO_EAPI_PHASE_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_GENTOO_EAPI_PHASE_HH 1
+
+#include <paludis/util/private_implementation_pattern.hh>
+#include <libwrapiter/libwrapiter_forward_iterator-fwd.hh>
+#include <string>
+
+namespace paludis
+{
+ namespace erepository
+ {
+ /**
+ * Holds a parsed EAPI phase.
+ *
+ * \nosubgrouping
+ * \ingroup grpportagerepository
+ * \ingroup grpeapi
+ */
+ class EAPIPhase :
+ private PrivateImplementationPattern<EAPIPhase>
+ {
+ public:
+ ///\name Basic operations
+ ///\{
+
+ explicit EAPIPhase(const std::string &);
+ ~EAPIPhase();
+
+ ///\}
+
+ ///\name Information about the phase
+ ///\{
+
+ bool option(const std::string &) const;
+
+ typedef libwrapiter::ForwardIterator<EAPIPhase, const std::string> Iterator;
+ Iterator begin_commands() const;
+ Iterator end_commands() const;
+
+ ///\}
+ };
+
+ /**
+ * Holds parsed EAPI phases.
+ *
+ * \nosubgrouping
+ * \ingroup grpportagerepository
+ * \ingroup grpeapi
+ */
+ class EAPIPhases :
+ private PrivateImplementationPattern<EAPIPhases>
+ {
+ public:
+ ///\name Basic operations
+ ///\{
+
+ explicit EAPIPhases(const std::string &);
+ ~EAPIPhases();
+
+ ///\}
+
+ ///\name Information about the phases
+ ///\{
+
+ typedef libwrapiter::ForwardIterator<EAPIPhases, const EAPIPhase> Iterator;
+ Iterator begin_phases() const;
+ Iterator end_phases() const;
+
+ ///\}
+ };
+ }
+}
+
+#endif