Definition at line 133 of file ImageSetsRepository.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_ERROR, mIdMap, and Impala::Util::IOBuffer::ReadLine(). Referenced by ImageSetsRepository(). 00134 { 00135 CmdOptions& options = CmdOptions::GetInstance(); 00136 String repName = options.GetString("imageSetsRepository"); 00137 File f = RepositoryInFileSystem::GetInstance().GetFile(loc, repName, 00138 false, false); 00139 Util::IOBuffer* buf = f.GetReadBuffer(); 00140 if (buf) 00141 { 00142 while (buf->Available()) 00143 { 00144 String line = buf->ReadLine(); 00145 if (line[0] && (line[0] != '#')) 00146 { 00147 Util::StringParser p(line); 00148 int setId = p.GetInt(); 00149 if ((setId <= 0) || (setId > 255)) 00150 ILOG_ERROR("setId out of range [0-255]"); 00151 String setName = p.GetString2(false); 00152 mIdMap.Add(setId, setName); 00153 } 00154 } 00155 delete buf; 00156 } 00157 }
Here is the call graph for this function: ![]()
|