40 #ifndef _serialization_h
41 #define _serialization_h
289 template <
class Serializable>
304 virtual void ProtoSerializeAll(
XML::Node& CurrentRoot)
const = 0;
313 ProtoSerializeAll(Doc);
322 virtual void ProtoSerialize(
const Serializable& Target,
XML::Node& CurrentRoot) = 0;
328 virtual std::ostream&
Serialize(std::ostream& Stream,
const Serializable& Target)
332 ProtoSerialize(Target,Doc);
350 template <
class DeSerializable>
363 while(SingleItemNode)
365 ProtoDeSerialize(SingleItemNode);
386 virtual DeSerializable* ProtoDeSerialize(
const XML::Node& OneNode) = 0;
402 virtual String ContainerName()
const = 0;
416 Converted.ProtoSerialize(Doc);
417 Doc.
Print(Stream, Indent.c_str());
447 std::stringstream Depot;
478 std::ostream& MEZZ_LIB operator<< <Mezzanine::XML::Node> (std::ostream& Stream, const Mezzanine::XML::Node& OneNode)
480 OneNode.Print(Stream);