Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
21
libs/storage/downloader_queue_interface.hpp
Normal file
21
libs/storage/downloader_queue_interface.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "storage/queued_country.hpp"
|
||||
#include "storage/storage_defines.hpp"
|
||||
|
||||
namespace storage
|
||||
{
|
||||
class QueueInterface
|
||||
{
|
||||
public:
|
||||
using ForEachCountryFunction = std::function<void(QueuedCountry const & country)>;
|
||||
|
||||
virtual bool IsEmpty() const = 0;
|
||||
virtual size_t Count() const = 0;
|
||||
virtual bool Contains(CountryId const & country) const = 0;
|
||||
virtual void ForEachCountry(ForEachCountryFunction const & fn) const = 0;
|
||||
|
||||
protected:
|
||||
virtual ~QueueInterface() = default;
|
||||
};
|
||||
} // namespace storage
|
||||
Loading…
Add table
Add a link
Reference in a new issue