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

virtual Array2dVec3UInt8* Impala::Application::MediaTable::TableDataSourceFlickrPhotoList::GetImageDataByID ( String  column,
int  row 
) [inline, virtual]

Reimplemented from Impala::Application::MediaTable::TableDataSource.

Definition at line 69 of file TableDataSourceFlickrPhotoList.h.

References Impala::Util::XmlDoc::GetAttributeValue(), mPhotos, mRemoteRetriever, and Impala::Application::MediaTable::RemoteRetriever::RetrieveImageData().

00070     {
00071         std::string sizeSuffix = "s";
00072         std::string imageUrl = "http://farm";
00073         imageUrl += GetAttributeValue(mPhotos[row], "farm") + ".static.flickr.com/";
00074         imageUrl += GetAttributeValue(mPhotos[row], "server") + "/";
00075         imageUrl += GetAttributeValue(mPhotos[row], "id") + "_";
00076         imageUrl += GetAttributeValue(mPhotos[row], "secret");
00077         if(sizeSuffix.length() > 0) imageUrl += "_" + sizeSuffix;
00078         imageUrl += ".jpg";
00079 
00080         Array2dVec3UInt8* ar = 0;
00081         ar = mRemoteRetriever->RetrieveImageData(imageUrl);
00082         return ar;
00083     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:45:24 2010 for ImpalaSrc by  doxygen 1.5.1