From 5983c2d0085c90cf3ebb4fcac0c61f0504039908 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Thu, 12 Jan 2006 15:16:07 +0000 Subject: [PATCH] forgot the arch attribute. At this stage I can fully store and retrieve Patches back from the storage, utilizing the YUM parser. --- devel/devel.dmacvicar/serialize.cc | 9 +++++++++ devel/devel.dmacvicar/serialize.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/devel/devel.dmacvicar/serialize.cc b/devel/devel.dmacvicar/serialize.cc index d2ab1c5a8..32ab3b89c 100644 --- a/devel/devel.dmacvicar/serialize.cc +++ b/devel/devel.dmacvicar/serialize.cc @@ -60,6 +60,14 @@ std::string toXML( const Edition edition ) return out.str(); } +template<> // or constPtr? +std::string toXML( const Arch arch ) +{ + stringstream out; + out << xml_tag_enclose(arch.asString(), "arch"); + return out.str(); +} + template<> // or constPtr? std::string toXML( Capability cap ) { @@ -115,6 +123,7 @@ std::string toXML( Resolvable::Ptr obj ) out << " " << obj->name() << "" << std::endl; // is this shared? uh out << " " << toXML(obj->edition()) << std::endl; + out << " " << toXML(obj->arch()) << std::endl; out << " " << toXML(obj->deps()) << std::endl; return out.str(); } diff --git a/devel/devel.dmacvicar/serialize.h b/devel/devel.dmacvicar/serialize.h index 7b09b827f..597f7995c 100644 --- a/devel/devel.dmacvicar/serialize.h +++ b/devel/devel.dmacvicar/serialize.h @@ -47,6 +47,9 @@ std::string toXML( T obj ); //undefined template<> // or constPtr? std::string toXML( const Edition edition ); +template<> // or constPtr? +std::string toXML( const Arch arch ); + template<> // or constPtr? std::string toXML( Capability cap ); -- 2.34.1