X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2FEngineImpl.cpp;h=268cb06cc49acc8ea917a0aba232f64eacb6dcf5;hb=26c27c2b83f99e6df420addc90010eb0d4a7724e;hp=9d23e57432c3c543a3a90854cf940b587af41693;hpb=8b8309d46e9ccc968d3a315e86e70c5a806706d0;p=anna.git diff --git a/source/diameter/codec/EngineImpl.cpp b/source/diameter/codec/EngineImpl.cpp index 9d23e57..268cb06 100644 --- a/source/diameter/codec/EngineImpl.cpp +++ b/source/diameter/codec/EngineImpl.cpp @@ -85,9 +85,13 @@ Message* EngineImpl::createMessage(const CommandId *id) throw(anna::RuntimeExcep //------------------------------------------------------------------------------ //-------------------------------------------------- EngineImpl::createMessage() //------------------------------------------------------------------------------ -Message *EngineImpl::createMessage(const std::string & xmlPathFile) throw(anna::RuntimeException) { +Message *EngineImpl::createMessage(const std::string & xmlPathFile_or_string, bool pathfile_or_string) throw(anna::RuntimeException) { Message *result = createMessage(); - result->loadXMLFile(xmlPathFile); + if (pathfile_or_string) + result->loadXMLFile(xmlPathFile_or_string); + else + result->loadXMLString(xmlPathFile_or_string); + return result; }