aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/constraint.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 17:43:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 18:30:27 +0100
commitb1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc (patch)
treed31883ed8ca6ee18d6a4ff31cfb1d41b615f5c8a /paludis/resolver/constraint.hh
parentc94a500a0b3e98e2d75bdfe667fe85949a1f8c27 (diff)
downloadpaludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.gz
paludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.xz
serialise
Diffstat (limited to 'paludis/resolver/constraint.hh')
-rw-r--r--paludis/resolver/constraint.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/resolver/constraint.hh b/paludis/resolver/constraint.hh
index 7b6fbdb..2c8c760 100644
--- a/paludis/resolver/constraint.hh
+++ b/paludis/resolver/constraint.hh
@@ -24,6 +24,7 @@
#include <paludis/resolver/reason-fwd.hh>
#include <paludis/resolver/use_installed-fwd.hh>
#include <paludis/resolver/sanitised_dependencies.hh>
+#include <paludis/resolver/serialise-fwd.hh>
#include <paludis/util/named_value.hh>
#include <paludis/dep_spec.hh>
#include <tr1/memory>
@@ -48,6 +49,11 @@ namespace paludis
NamedValue<n::spec, PackageOrBlockDepSpec> spec;
NamedValue<n::to_destination_slash, bool> to_destination_slash;
NamedValue<n::use_installed, UseInstalled> use_installed;
+
+ void serialise(Serialiser &) const;
+
+ static const std::tr1::shared_ptr<Constraint> deserialise(
+ Deserialisation & d) PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE Constraints :
@@ -69,6 +75,11 @@ namespace paludis
ConstIterator end() const PALUDIS_ATTRIBUTE((warn_unused_result));
bool empty() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ void serialise(Serialiser &) const;
+
+ static const std::tr1::shared_ptr<Constraints> deserialise(
+ Deserialisation & d) PALUDIS_ATTRIBUTE((warn_unused_result));
};
}