aboutsummaryrefslogtreecommitdiff
path: root/paludis/qa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/qa.cc')
-rw-r--r--paludis/qa.cc33
1 files changed, 31 insertions, 2 deletions
diff --git a/paludis/qa.cc b/paludis/qa.cc
index d3b8cfce7..bdf8d7a00 100644
--- a/paludis/qa.cc
+++ b/paludis/qa.cc
@@ -18,16 +18,45 @@
*/
#include <paludis/qa.hh>
-#include <paludis/util/exception.hh>
#include <paludis/util/stringify.hh>
-#include <ostream>
+#include <paludis/util/sequence-impl.hh>
+#include <paludis/util/set-impl.hh>
using namespace paludis;
#include <paludis/qa-se.cc>
#include <paludis/qa-sr.cc>
+template class Set<tr1::shared_ptr<const PackageID>, PackageIDSetComparator>;
+template class Sequence<tr1::shared_ptr<const MetadataKey> >;
+
QAReporter::~QAReporter()
{
}
+tr1::shared_ptr<PackageIDSet>
+QAMessage::default_associated_ids()
+{
+ return tr1::shared_ptr<PackageIDSet>(new PackageIDSet);
+}
+
+tr1::shared_ptr<QAMessage::KeysSequence>
+QAMessage::default_associated_keys()
+{
+ return tr1::shared_ptr<KeysSequence>(new KeysSequence);
+}
+
+QAMessage &
+QAMessage::with_associated_id(const tr1::shared_ptr<const PackageID> & id)
+{
+ associated_ids->insert(id);
+ return *this;
+}
+
+QAMessage &
+QAMessage::with_associated_key(const tr1::shared_ptr<const MetadataKey> & k)
+{
+ associated_keys->push_back(k);
+ return *this;
+}
+