Ejemplo n.º 1
0
void TMixedDescriptorPool::CollectFiles(yvector<const TFileDescriptor*>& files) {
    files.clear();
    const yset<Stroka>& fileNames = Database.RequestedFiles();
    for (yset<Stroka>::const_iterator it = fileNames.begin(); it != fileNames.end(); ++it) {
        const TFileDescriptor* fd = FindFileByName(*it);
        if (fd)
            files.push_back(fd);
    }
}
Ejemplo n.º 2
0
wxString COARfile::FindMessageBookFile()
{
  wxString sRtn;
  wxString s = GetHeadingFileName();
  if(!s.IsEmpty())
  {
    wxFileName fn(s);
    s = fn.GetName();
    if(!s.IsEmpty())
    {
      s.Append(_T(".msgBook.xml"));
      sRtn = FindFileByName(s);
    }
  }
  return sRtn;
}
Ejemplo n.º 3
0
wxString COARfile::FindPlotFile(COARsample *pSample)
{
  wxString sRtn;
  if(pSample != NULL)
  {
    wxString sName = pSample->GetName();
    wxString sExt = CDirList::GetValidExtension(sName);
    size_t nLen = sExt.Len();
    if(nLen)
    {
      size_t n = sName.Len();
      sName = sName.Truncate(n - nLen - 1);
    }
    sName.Append(_T(".plt"));
    sRtn = FindFileByName(sName);
  }
  return sRtn;
}