From 687b0fa0b7c8440f71837334b0b29c28dfae2dca Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 2 Oct 2015 02:52:20 +0200 Subject: [PATCH] Simplify command (no parameter field, all inside command). Interactive mode. --- example/diameter/batchConverter/main.cpp | 2 +- example/diameter/launcher/Launcher.cpp | 73 ++++++++++++++----- .../diameter/launcher/testing/TestCase.cpp | 8 +- .../diameter/launcher/testing/TestCase.hpp | 16 +++- .../diameter/launcher/testing/TestStep.cpp | 17 ++++- .../diameter/launcher/testing/TestStep.hpp | 9 +-- include/anna/diameter/codec/Message.hpp | 4 + 7 files changed, 94 insertions(+), 35 deletions(-) diff --git a/example/diameter/batchConverter/main.cpp b/example/diameter/batchConverter/main.cpp index f909d89..0e7eff4 100644 --- a/example/diameter/batchConverter/main.cpp +++ b/example/diameter/batchConverter/main.cpp @@ -70,7 +70,7 @@ void _exit(const std::string &message, int resultCode = 1) { // Decodes a diameter message coming from a datablock void decodeDataBlock(const anna::DataBlock &db/*, unsigned int & detectedApplicationId*/) throw() { try { - G_codecMsg.clear(); // perhaps we will need another codec engine ... + G_codecMsg.setEngine(NULL); // perhaps we will need another codec engine ... G_codecMsg.decode(db); } catch(RuntimeException &ex) { _exit(ex.asString()); diff --git a/example/diameter/launcher/Launcher.cpp b/example/diameter/launcher/Launcher.cpp index f7921e7..eac8b26 100644 --- a/example/diameter/launcher/Launcher.cpp +++ b/example/diameter/launcher/Launcher.cpp @@ -1159,30 +1159,29 @@ std::string Launcher::help() const throw() { result += "\n received from entity (waitfe) or from client (waitfc)."; result += "\n"; result += "\n wait-regexp|"; - result += "\n Wait condition, from entity (waitfe-regexp) or client (waitfc-regexp)"; + result += "\n Wait condition, from entity (waitfe-regexp) or client (waitfc-regexp)"; result += "\n to match the serialized xml content for received messages. CPU cost"; result += "\n is bigger than the former ones because the whole message must be"; result += "\n decoded and converted to xml instead of doing a direct hexadecimal"; result += "\n buffer search. The main advantage is the great flexibility to identify"; result += "\n any content with a regular expression."; result += "\n"; - result += "\n sh-command|