Files
comaps/libs/storage/downloader_queue_interface.hpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

22 lines
517 B
C++

#pragma once
#include "storage/storage_defines.hpp"
#include "storage/queued_country.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