Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Application::TagsLife::Tag::readRelated ( string  xmlFile  )  [inline, private]

Definition at line 188 of file Tag.h.

References Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetChildNodes(), Impala::Util::XmlDoc::GetElementValue(), ILOG_ERROR, ILOG_INFO, Impala::Persistency::XmlFileReader::Read(), relatedTags, and tag.

00188                                     {
00189                 Persistency::XmlFileReader reader;
00190                 ILOG_INFO("reading XML file: " + xmlFile);
00191         DOMDocument* doc = reader.Read(xmlFile, false);
00192         if(doc == 0) {
00193                 ILOG_ERROR("Failed to read XML file: " + xmlFile);
00194                 return -1;
00195         }
00196                 DOMNode* root = GetChildNode(GetChildNode(doc,"rsp", true), "tags", true);
00197 
00198                 vector<DOMNode*> tags = GetChildNodes(root, "tag");
00199                 ILOG_INFO("Related: tag.size = " << tags.size());
00200                 for(uint i=0; i < tags.size(); i++) {
00201                         relatedTags[tag].push_back(GetElementValue(tags[i]));
00202                 }
00203 
00204         return 0;
00205     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:23 2011 for ImpalaSrc by  doxygen 1.5.1