DataStore::PathCollection DataStore::getPaths(const File& file) { PathCollection paths; DataStore::iterator iter = store.find(file); if (iter == store.end()) return paths; ListOfIters iters = store[file]; for (auto iter : iters) paths.push_back(*iter); return paths; }
void OBaseThread::Parse( wxString s,PathCollection& m_path_collection ) { boost::char_separator<TCHAR> sep( _T("\n")); tchar_string str = s.c_str(); tokenizer tokens(str, sep); tokenizer::iterator tok_iter = tokens.begin(); tchar_string one_line; while(tok_iter!=tokens.end()) { one_line = *tok_iter++; if (one_line.length()) m_path_collection.push_back(NormalizeDirName(one_line)); } }