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

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

Definition at line 422 of file Database.h.

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

Referenced by GetReadableFile().

00424     {
00425         StringListCI i;
00426         for (i=begin ; i!=end ; i++)
00427         {
00428             String d = StringResolveEnv(*i);
00429             String path = FileNameConcat(d, file);
00430             ILOG_DEBUG("GetReadableFile: trying " << path);
00431             if (IOBufferFile::FileExists(path))
00432                 return path;
00433         }
00434 
00435         if (!silent)
00436         {
00437             ILOG_ERROR("Unable to find " << file << " in path ");
00438             for (i=begin ; i!=end ; i++)
00439                 ILOG_INFO("    " << *i);
00440         }
00441         return String("");
00442     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:12 2011 for ImpalaSrc by  doxygen 1.5.1