aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/cran/masks.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-31 22:51:40 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-31 22:51:40 +0000
commit986635d5e98ef46e24716bbcb1556fa88cafdbc9 (patch)
tree9c32e797938cd1b4e95a04fd710fd5e5e3c854cc /paludis/repositories/cran/masks.cc
parent7e614e0bcdb4730761aea814dcecc2b801514bd0 (diff)
downloadpaludis-986635d5e98ef46e24716bbcb1556fa88cafdbc9.tar.gz
paludis-986635d5e98ef46e24716bbcb1556fa88cafdbc9.tar.xz
Start to unbreak CRAN some more
Diffstat (limited to 'paludis/repositories/cran/masks.cc')
-rw-r--r--paludis/repositories/cran/masks.cc70
1 files changed, 70 insertions, 0 deletions
diff --git a/paludis/repositories/cran/masks.cc b/paludis/repositories/cran/masks.cc
new file mode 100644
index 000000000..4d92ebb95
--- /dev/null
+++ b/paludis/repositories/cran/masks.cc
@@ -0,0 +1,70 @@
+/* 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
+ */
+
+#include "masks.hh"
+#include <paludis/util/private_implementation_pattern-impl.hh>
+
+using namespace paludis;
+using namespace paludis::cranrepository;
+
+namespace paludis
+{
+ template <>
+ struct Implementation<BrokenMask>
+ {
+ const char key;
+ const std::string description;
+ const std::string explanation;
+
+ Implementation(const char k, const std::string & d, const std::string & e) :
+ key(k),
+ description(d),
+ explanation(e)
+ {
+ }
+ };
+}
+
+BrokenMask::BrokenMask(const char c, const std::string & d, const std::string & e) :
+ PrivateImplementationPattern<BrokenMask>(new Implementation<BrokenMask>(c, d, e))
+{
+}
+
+BrokenMask::~BrokenMask()
+{
+}
+
+const char
+BrokenMask::key() const
+{
+ return _imp->key;
+}
+
+const std::string
+BrokenMask::description() const
+{
+ return _imp->description;
+}
+
+const std::string
+BrokenMask::explanation() const
+{
+ return _imp->explanation;
+}
+