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