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

void Impala::Application::Repository::DoSyncFile (  ) 

Definition at line 3010 of file mainRepository.cpp.

References Impala::Persistency::RepositoryInFileSystem::CopyFile(), Impala::CmdOptions::GetArg(), Impala::Persistency::RepositoryInFileSystem::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, and ILOG_VAR.

Referenced by mainRepository().

03011 {
03012     ILOG_VAR(Impala.Application.Repository.DoSyncFile);
03013     CmdOptions& options = CmdOptions::GetInstance();
03014 
03015     int nrArg = 4;
03016     if (options.GetNrArg() < nrArg)
03017     {
03018         ILOG_ERROR("Need at least " << nrArg << " parameters");
03019     }
03020 
03021     String locString1 = options.GetArg(1);
03022     String setName = options.GetArg(2);
03023     String fileName = options.GetArg(3);
03024     String locString2 = options.GetArg(4);
03025 
03026     FileLocator srcLoc(locString1, setName, fileName);
03027     FileLocator dstLoc(locString2, setName, fileName);
03028     RepositoryInFileSystem::GetInstance().CopyFile(srcLoc, dstLoc);
03029 }

Here is the call graph for this function:


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