Definition at line 25 of file SimilarityTableSetRepositoryInFile.h. References GetDir(), Impala::Persistency::SimilarityTableSetLocator::GetFeature(), Impala::Persistency::RepositoryInFileSystem::GetFile(), LoadQuids(), LoadRanks(), LoadSims(), Impala::Persistency::File::ReadStrings(), RepFS(), Impala::Core::Table::SimilarityTableSet::SetDescription(), and Impala::Persistency::File::Valid(). 00026 { 00027 String dir = GetDir(loc); 00028 File file = RepFS().GetFile(loc, dir, "names.txt", false, false); 00029 if (!file.Valid()) 00030 return 0; 00031 std::vector<String> names; 00032 file.ReadStrings(std::back_inserter(names)); 00033 SimilarityTableSet* res = new SimilarityTableSet(names, 0); 00034 res->SetDescription(loc.GetFeature()); 00035 00036 LoadQuids(res, loc, dir); 00037 LoadSims(res, loc, dir); 00038 LoadRanks(res, loc, dir); 00039 return res; 00040 }
Here is the call graph for this function:
|