X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2FbatchConverter%2Fmain.cpp;h=72329739d29f4cd058f2a3f7ca511267107b7643;hb=a8cde75abebb30020be4d9cb10d898f8986e124c;hp=14300cc3ba3e16324178bdd7ec0d78eca77e2e2b;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/example/diameter/batchConverter/main.cpp b/example/diameter/batchConverter/main.cpp index 14300cc..7232973 100644 --- a/example/diameter/batchConverter/main.cpp +++ b/example/diameter/batchConverter/main.cpp @@ -89,7 +89,7 @@ int main(int argc, char **argv) { if(argc < 3) { std::string msg = "Usage: "; msg += exec; msg += " [--hex-only] [--xml-only] [--no-validation] [--ignore-flags] [--debug]\n\n"; - msg += " stacks: \n"; + msg += " stacks: \n"; msg += " This is a list of #-separated stacks defined by a comma-separated pair \n"; msg += " If only one stack is provided, application-id could be omitted and then, all the messages will be decoded with the\n"; msg += " dictionary regardless the value of the application-id (the stack will be registered with id=0).\n"; @@ -122,7 +122,7 @@ int main(int argc, char **argv) { bool processHex = xmlOnly ? false:true; Logger::setLevel(debug ? Logger::Debug:Logger::Warning); Logger::initialize(execBN.c_str(), new TraceWriter(filetrace.c_str(), 2048000)); - G_codecEngine = new anna::diameter::codec::Engine(); + G_codecEngine = new anna::diameter::codec::Engine("MyCodecEngine"); G_codecMsg = G_codecEngine->createMessage(); anna::diameter::stack::Engine &stackEngine = anna::diameter::stack::Engine::instantiate(); @@ -148,7 +148,7 @@ int main(int argc, char **argv) { } if(stackTok.size() != 2) - throw anna::RuntimeException("Each stack must be in the form '#'", ANNA_FILE_LOCATION); + throw anna::RuntimeException("Each stack must be in the form ','", ANNA_FILE_LOCATION); multistack = true; stack_it = stackTok.begin();