//------------------------------------------------------------------------------
//-------------------------------------------------- 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->loadXML(xmlPathFile);
+ if (pathfile_or_string)
+ result->loadXMLFile(xmlPathFile_or_string);
+ else
+ result->loadXMLString(xmlPathFile_or_string);
+
return result;
}
result += "\nFixMode: ";
result += asText(a_fixMode);
result += "\nActivated Dictionary: ";
- result += a_dictionary ? (a_dictionary->getName()) : "<null>";
+ result += a_dictionary ? (a_dictionary->getName()) : "[null]";
return result;
}