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

void Impala::Application::MediaTable::TableDataSourceFlickrPhotoList::loadXML ( std::string  url  )  [inline, private]

Definition at line 112 of file TableDataSourceFlickrPhotoList.h.

References Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetChildNodes(), ILOG_INFO, mPhotos, mRemoteRetriever, mTotalRows, Impala::Persistency::XmlFileReader::Read(), reader, and Impala::Application::MediaTable::RemoteRetriever::RetrieveFile().

Referenced by Init().

00112                                     {
00113                 //string url = "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=78c291da0267f70420521d1a04b788a0&sort=date-posted-asc&tag_mode=all&media=photos&extras=license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media&per_page=500&tags=obama";
00114                 if(url == "")
00115                         url = "http://api.flickr.com/services/rest/?method=flickr.panda.getPhotos&api_key=78c291da0267f70420521d1a04b788a0&extras=license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media&per_page=500&panda_name=wang%20wang";
00116                 std::string xmlFile = "photos.xml";
00117 
00118                 mRemoteRetriever->RetrieveFile(url, false, true, xmlFile);
00119 
00120         ILOG_INFO("reading XML file: " + xmlFile);
00121                 DOMDocument* doc = reader.Read(xmlFile);
00122                 DOMNode* root = GetChildNode(GetChildNode(doc, "rsp", true), "photos", true);
00123 
00124                 mPhotos = GetChildNodes(root, "photo");
00125                 mTotalRows = mPhotos.size();
00126         }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:29 2011 for ImpalaSrc by  doxygen 1.5.1