Improved VATSIM status file reading

This commit is contained in:
Klaus Basan
2019-09-10 21:58:39 +02:00
committed by Mat Sutcliffe
parent e8b14c435f
commit b3945adc98
4 changed files with 44 additions and 12 deletions

View File

@@ -61,6 +61,12 @@ namespace BlackMisc
return CUrl();
}
CUrl CUrlList::getRandomWithout(const CUrl &exclude) const
{
const CUrlList excludes({ exclude });
return this->getRandomWithout(excludes);
}
CUrl CUrlList::getRandomWithout(const CUrlList &exclude) const
{
CUrlList copy(*this);

View File

@@ -49,6 +49,9 @@ namespace BlackMisc
//! Random location for distributed load, tested
CUrl getRandomWorkingUrl(int maxTrials = 2, int timeoutMs = -1) const;
//! Random location for distributed load
CUrl getRandomWithout(const CUrl &exclude) const;
//! Random location for distributed load
CUrl getRandomWithout(const CUrlList &exclude) const;