X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fmain.cpp;h=48b304dbf69dd85fa4a47e4cbed04c7654c73acd;hb=8fd3f544c128128a569c551e9ca8e9945ff3c65c;hp=5a8422d8503ca8c04a05fa7656fd5ba8db1dfeac;hpb=d05828d1ebfc81da3041e8ac474057fc0e453f0c;p=anna.git 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(); }