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

String Impala::Persistency::FileSystem::GetReadableFileLocal ( StringListCI  begin,
StringListCI  end,
CString  file,
bool  silent 
) [inline, private]

Definition at line 385 of file FileSystem.h.

References Impala::Util::IOBufferFile::FileExists(), Impala::FileNameConcat(), ILOG_DEBUG, ILOG_ERROR, ILOG_INFO, and Impala::StringResolveEnv().

Referenced by GetReadableFile().

00387     {
00388         StringListCI i;
00389         for (i=begin ; i!=end ; i++)
00390         {
00391             String d = StringResolveEnv(*i);
00392             String path = FileNameConcat(d, file);
00393             ILOG_DEBUG("GetReadableFile: trying " << path);
00394             if (Util::IOBufferFile::FileExists(path))
00395                 return path;
00396         }
00397 
00398         if (!silent)
00399         {
00400             ILOG_ERROR("Unable to find " << file << " in path ");
00401             for (i=begin ; i!=end ; i++)
00402                 ILOG_INFO("    " << *i);
00403         }
00404         return String("");
00405     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:22:53 2011 for ImpalaSrc by  doxygen 1.5.1