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

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

Definition at line 332 of file FileSystem.h.

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

Referenced by GetWritableFile().

00334     {
00335         if (begin == end)
00336         {
00337             ILOG_ERROR("GetWritableFile: no search path");
00338             return String("");
00339         }
00340         String path = FileNameConcat(*begin, file);
00341         ILOG_DEBUG("GetWritableFile: trying " << path);
00342         if (Util::IOBufferFile::FileExists(path))
00343         {
00344             if (! mOverride)
00345             {
00346                 if (!silent)
00347                     ILOG_ERROR(path << " already exists, will not override!");
00348                 return String("");
00349             }
00350         }
00351         return path;
00352     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:35:21 2010 for ImpalaSrc by  doxygen 1.5.1