//------------------------------------------------------------------------------
//----------------------------------------------------------- Dictionary::load()
//------------------------------------------------------------------------------
-void Dictionary::load(const std::string & xmlPathFile) throw(anna::RuntimeException) {
- if(xmlPathFile == "")
+void Dictionary::load(const std::string & pathFile) throw(anna::RuntimeException) {
+ if(pathFile == "")
throw anna::RuntimeException("Empty xml path file provided", ANNA_FILE_LOCATION);
LOGDEBUG(
std::string trace = "Loading diameter dictionary from '";
- trace += xmlPathFile;
+ trace += pathFile;
trace += "' ...";
anna::Logger::debug(trace, ANNA_FILE_LOCATION);
);
try {
anna::xml::DocumentFile xmlDocument; // has private copy constructor defined but not implemented to avoid inhenrit/copy (is very heavy)
const anna::xml::Node *rootNode;
- xmlDocument.initialize(xmlPathFile.c_str()); // fail here is i/o error
+ xmlDocument.initialize(pathFile.c_str()); // fail here is i/o error
rootNode = xmlDocument.parse(*a_dtd); // Parsing: fail here if xml violates dtd
a_name = rootNode->getAttribute("name")->getValue();
//checkUniqueIdentifiers(rootNode); // Check unique id within xml, for vendor, avp and command nodes: