aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/gentoo/portage_repository_profile_file.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/gentoo/portage_repository_profile_file.hh')
-rw-r--r--paludis/repositories/gentoo/portage_repository_profile_file.hh52
1 files changed, 52 insertions, 0 deletions
diff --git a/paludis/repositories/gentoo/portage_repository_profile_file.hh b/paludis/repositories/gentoo/portage_repository_profile_file.hh
new file mode 100644
index 000000000..baa6552f6
--- /dev/null
+++ b/paludis/repositories/gentoo/portage_repository_profile_file.hh
@@ -0,0 +1,52 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2006 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_PORTAGE_PORTAGE_REPOSITORY_PROFILE_FILE_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_PORTAGE_PORTAGE_REPOSITORY_PROFILE_FILE_HH 1
+
+#include <paludis/util/private_implementation_pattern.hh>
+#include <paludis/util/attributes.hh>
+#include <paludis/util/fs_entry.hh>
+#include <libwrapiter/libwrapiter_forward_iterator.hh>
+
+namespace paludis
+{
+ /**
+ * A file in a PortageRepository profile.
+ *
+ * Handles -lines, comments, inherits automatically.
+ *
+ * \ingroup grpportagerepository
+ */
+ class PALUDIS_VISIBLE ProfileFile :
+ private PrivateImplementationPattern<ProfileFile>
+ {
+ public:
+ ProfileFile();
+ ~ProfileFile();
+
+ void add_file(const FSEntry &);
+
+ typedef libwrapiter::ForwardIterator<ProfileFile, const std::string> Iterator;
+ Iterator begin() const;
+ Iterator end() const;
+ };
+}
+
+#endif