From 8fd3f544c128128a569c551e9ca8e9945ff3c65c Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 3 Apr 2015 13:42:21 +0200 Subject: [PATCH] All in one dump for launcher --- example/diameter/launcher/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/diameter/launcher/main.cpp b/example/diameter/launcher/main.cpp index 5a8422d..48b304d 100644 --- a/example/diameter/launcher/main.cpp +++ b/example/diameter/launcher/main.cpp @@ -1505,6 +1505,16 @@ throw(anna::RuntimeException) { codecEngine->setDictionary(d); LOGDEBUG(anna::Logger::debug(codecEngine->asString(), ANNA_FILE_LOCATION)); + + if (lst.size() > 1) { + std::string all_in_one = "./dictionary-all-in-one.xml"; + std::ofstream out(all_in_one, std::ifstream::out); + std::string buffer = d->asXMLString(); + out.write(buffer.c_str(), buffer.size()); + out.close(); + std::cout << "Written '" << all_in_one << "' (provide it next time to be more comfortable)." << std::endl; + } + } catch (anna::RuntimeException &ex) { ex.trace(); } -- 2.20.1