Definition at line 157 of file VideoSetsRepository.h. References Impala::Util::IOBuffer::Available(), Impala::Persistency::RepositoryInFileSystem::GetFile(), Impala::Persistency::RepositoryInFileSystem::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::Util::StringParser::GetInt(), Impala::Persistency::File::GetReadBuffer(), Impala::CmdOptions::GetString(), Impala::Util::StringParser::GetString2(), ILOG_DEBUG, mIdMap, and Impala::Util::IOBuffer::ReadLine(). Referenced by VideoSetsRepository(). 00158 { 00159 ILOG_DEBUG("GetFromFileSystem"); 00160 CmdOptions& options = CmdOptions::GetInstance(); 00161 String repName = options.GetString("videoSetsRepository"); 00162 File f = RepositoryInFileSystem::GetInstance().GetFile(loc, repName, 00163 false, false); 00164 Util::IOBuffer* buf = f.GetReadBuffer(); 00165 if (buf) 00166 { 00167 while (buf->Available()) 00168 { 00169 String line = buf->ReadLine(); 00170 if (line[0] && (line[0] != '#')) 00171 { 00172 Util::StringParser p(line); 00173 int setId = p.GetInt(); 00174 String setName = p.GetString2(false); 00175 mIdMap.Add(setId, setName); 00176 } 00177 } 00178 delete buf; 00179 } 00180 }
Here is the call graph for this function:
|