Definition at line 166 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, ILOG_ERROR, mIdMap, and Impala::Util::IOBuffer::ReadLine(). Referenced by VideoSetsRepository(). 00167 { 00168 ILOG_DEBUG("GetFromFileSystem"); 00169 CmdOptions& options = CmdOptions::GetInstance(); 00170 String repName = options.GetString("videoSetsRepository"); 00171 File f = RepositoryInFileSystem::GetInstance().GetFile(loc, repName, 00172 false, false); 00173 Util::IOBuffer* buf = f.GetReadBuffer(); 00174 if (buf) 00175 { 00176 while (buf->Available()) 00177 { 00178 String line = buf->ReadLine(); 00179 if (line[0] && (line[0] != '#')) 00180 { 00181 Util::StringParser p(line); 00182 int setId = p.GetInt(); 00183 if ((setId <= 0) || (setId > 255)) 00184 ILOG_ERROR("setId out of range [0-255]"); 00185 String setName = p.GetString2(false); 00186 mIdMap.Add(setId, setName); 00187 } 00188 } 00189 delete buf; 00190 } 00191 }
Here is the call graph for this function: ![]()
|