aboutsummaryrefslogtreecommitdiff
path: root/paludis/literal_metadata_key.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 22:21:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 22:21:30 +0000
commita7d1a3d9a271be81af6b01ef310147fd2aa35c94 (patch)
tree52a58c2f12643f62e4e4840aee5885b8ad26842b /paludis/literal_metadata_key.hh
parente15f518956383d4dc22bee5c13939f8de247a46d (diff)
downloadpaludis-a7d1a3d9a271be81af6b01ef310147fd2aa35c94.tar.gz
paludis-a7d1a3d9a271be81af6b01ef310147fd2aa35c94.tar.xz
Let sync take a suffix
Diffstat (limited to 'paludis/literal_metadata_key.hh')
-rw-r--r--paludis/literal_metadata_key.hh34
1 files changed, 34 insertions, 0 deletions
diff --git a/paludis/literal_metadata_key.hh b/paludis/literal_metadata_key.hh
index 112fa308e..b514e1fe4 100644
--- a/paludis/literal_metadata_key.hh
+++ b/paludis/literal_metadata_key.hh
@@ -270,6 +270,40 @@ namespace paludis
virtual const std::string human_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual MetadataKeyType type() const PALUDIS_ATTRIBUTE((warn_unused_result));
};
+
+ /**
+ * A LiteralMetadataStringStringMapKey is a MetadataCollectionKey<Set<std::string> >
+ * whose value is known at construction time.
+ *
+ * \ingroup g_literal_metadata_key
+ * \since 0.55
+ */
+ class PALUDIS_VISIBLE LiteralMetadataStringStringMapKey :
+ public MetadataCollectionKey<Map<std::string, std::string> >,
+ private Pimp<LiteralMetadataStringStringMapKey>
+ {
+ private:
+ Pimp<LiteralMetadataStringStringMapKey>::ImpPtr & _imp;
+
+ public:
+ ///\name Basic operations
+ ///\{
+
+ LiteralMetadataStringStringMapKey(const std::string &, const std::string &, const MetadataKeyType,
+ const std::shared_ptr<const Map<std::string, std::string> > &);
+ ~LiteralMetadataStringStringMapKey();
+
+ ///\}
+
+ virtual const std::shared_ptr<const Map<std::string, std::string> > value() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual std::string pretty_print_flat(const Formatter<std::pair<const std::string, std::string> > &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual const std::string raw_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual const std::string human_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual MetadataKeyType type() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
}
#endif