From: Eduardo Ramos Testillano Date: Fri, 3 Apr 2015 11:42:21 +0000 (+0200) Subject: All in one dump for launcher X-Git-Tag: REFACTORING_TESTING_LIBRARY~200 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=8fd3f544c128128a569c551e9ca8e9945ff3c65c;p=anna.git All in one dump for launcher --- 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(); }