From 8f9d71ccc88e3fa403a37e66216b266397871cb2 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 28 Oct 2011 14:07:17 +0100 Subject: [PATCH] wire up thin_restore to use the restore_emitter --- thin_restore.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thin_restore.cc b/thin_restore.cc index af4ec98..43e7b05 100644 --- a/thin_restore.cc +++ b/thin_restore.cc @@ -1,6 +1,7 @@ #include "emitter.h" #include "human_readable_format.h" #include "metadata.h" +#include "restore_emitter.h" #include "xml_format.h" #include @@ -17,9 +18,10 @@ namespace po = boost::program_options; namespace { void restore(string const &backup_file, string const &dev) { - emitter::ptr hr = create_human_readable_emitter(cout); + metadata::ptr md(new metadata(dev)); + emitter::ptr restorer = create_restore_emitter(md); ifstream in(backup_file.c_str(), ifstream::in); - parse_xml(in, hr); + parse_xml(in, restorer); in.close(); }